Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Copy and Paste
Hi, lastcol + 4 = 7 I am trying to copy range("G1,G1000") in Sheet - Test to Sheet BWBIF Range("a1") I have used 'last col' variable instead of Range("G1:G1000") because the column positioning changes. The below doesnt quite work. Sheets("Test").Range(Cells(1, lastcol + 4), Cells(1000, lastcol + 4)).Copy Destination:=Sheets("BWBIF").Range("A1") Thanks -- T De Villiers ------------------------------------------------------------------------ T De Villiers's Profile: http://www.excelforum.com/member.php...o&userid=26479 View this thread: http://www.excelforum.com/showthread...hreadid=566731 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Copy and Paste
With Sheets("Test") .Range(.Cells(1, lastcol + 4), .Cells(1000, lastcol + _ 4)).Copy Destination:=Sheets("BWBIF").Range("A1") End With does the last column plus 4 actually contain data? -- Regards, Tom Ogilvy "T De Villiers" wrote: Hi, lastcol + 4 = 7 I am trying to copy range("G1,G1000") in Sheet - Test to Sheet BWBIF Range("a1") I have used 'last col' variable instead of Range("G1:G1000") because the column positioning changes. The below doesnt quite work. Sheets("Test").Range(Cells(1, lastcol + 4), Cells(1000, lastcol + 4)).Copy Destination:=Sheets("BWBIF").Range("A1") Thanks -- T De Villiers ------------------------------------------------------------------------ T De Villiers's Profile: http://www.excelforum.com/member.php...o&userid=26479 View this thread: http://www.excelforum.com/showthread...hreadid=566731 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Copy and Paste
Thanks Tom - works a treat -- T De Villiers ------------------------------------------------------------------------ T De Villiers's Profile: http://www.excelforum.com/member.php...o&userid=26479 View this thread: http://www.excelforum.com/showthread...hreadid=566731 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Can't Copy and Paste or Paste Special between Excel Workbooks | Excel Discussion (Misc queries) | |||
help w/ generic copy & paste/paste special routine | Excel Programming | |||
Excel cut/Paste Problem: Year changes after data is copy and paste | Excel Discussion (Misc queries) | |||
Copy and Paste macro needs to paste to a changing cell reference | Excel Programming | |||
Macro to Copy/Paste then Paste to Next Line | Excel Programming |