Hello,
I am looking to write a macro that is able to copy values in rows 3 to 10 if the word "copy" is in Row 1. For example, if Copy was in A1 it would copy A2:A10, but for all columns A through Z.
Something along the lines of:
Except that that preferably I could write the macro to copy all columns with "Copy" in Row 1 and not just in Column A.
Thanks!
I am looking to write a macro that is able to copy values in rows 3 to 10 if the word "copy" is in Row 1. For example, if Copy was in A1 it would copy A2:A10, but for all columns A through Z.
Something along the lines of:
VBA Code:
If Range("A1").Value = "Copy" Then
Range("A2:A7").Copy
Except that that preferably I could write the macro to copy all columns with "Copy" in Row 1 and not just in Column A.
Thanks!