有条件将数据从工作表传输到另一个

时间:2019-01-19 12:36:18

标签: vba macos

希望您能帮助我。我正在尝试根据多个索引和规范复制某些数据。我在下面描述了我的问题:

嗨,我是VBA的基础学习者。我可以移动整个数据,但不能执行条件格式。

我目前尚未准备好代码

我希望根据条件将数据从工作表1传输到工作表2,工作表3,工作表4:

copy cell D VALUE if worksheet 1  column A = "Are" 

(if column B = 2 (open worksheet 2), 
AND 
if column C = "You" paste the multiple values of column D in cells C12 TO C19
if column c = "me" paste the multiple values of column D in cell C20 TO C29

if column B = 3 (open worksheet 3), 
AND
if column C = "You" paste the multiple values of column D in cells C12 TO C19
if column c = "me" paste the multiple values of column D in cell C20 TO C29

if column B = 4 (open worksheet 4))  
AND 
if column C = "You" paste the multiple values of column D in cells C12 TO C19
if column c = "me" paste the multiple values of column D in cell C20 TO C29

谢谢!

1 个答案:

答案 0 :(得分:0)

拆分为多个工作表

public static void main(String argsp[]) {
    System.setProperty("sun.java2d.opengl", "true");
    new Game();
}