Hi guys
I hope anyone can help me with my excel problem.
I want to create a “CopyPaste” VBA that based on a cell value it will paste in different areas. The “copyarea/copyrange” will always be the same (A11:B20). But based on the cell value in cell “A1” the pastearea/pasterange will change.
Lets say that if cell “A1” has the value “Stockholm” I want the VBA to copy the area “A11:B20” to “B11:C20”. If the value in cell “A1” is “London” I want the VBA to copy the area “A11:B20” to B21:C30”. If the value in cell “A1” is “New York” I want the VBA to copy the area “A11:B20” to “B31:C40” and so on.
Can anyone help me with this?
Wbr // Anders Kauerauf
I hope anyone can help me with my excel problem.
I want to create a “CopyPaste” VBA that based on a cell value it will paste in different areas. The “copyarea/copyrange” will always be the same (A11:B20). But based on the cell value in cell “A1” the pastearea/pasterange will change.
Lets say that if cell “A1” has the value “Stockholm” I want the VBA to copy the area “A11:B20” to “B11:C20”. If the value in cell “A1” is “London” I want the VBA to copy the area “A11:B20” to B21:C30”. If the value in cell “A1” is “New York” I want the VBA to copy the area “A11:B20” to “B31:C40” and so on.
Can anyone help me with this?
Wbr // Anders Kauerauf