G
Guest
I have a macro that changes values in wks2 in range b1:b100. Every time the
data changes I want to copy the values in wks1, always beginning on row 3 but
the column number changes with a count. I can't figure out how to modify the
following code:
col=5
Worksheet("wks2").Range("b1:b100").Select
Selection.Copy
Sheets("wks1").Select
****on the next line I want to use "col"****
Range("D3").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
data changes I want to copy the values in wks1, always beginning on row 3 but
the column number changes with a count. I can't figure out how to modify the
following code:
col=5
Worksheet("wks2").Range("b1:b100").Select
Selection.Copy
Sheets("wks1").Select
****on the next line I want to use "col"****
Range("D3").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False