Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't Copy and Paste or Paste Special between Excel Workbooks wllee Excel Discussion (Misc queries) 5 April 29th 23 03:43 AM
help w/ generic copy & paste/paste special routine DavidH[_2_] Excel Programming 5 January 23rd 06 03:58 AM
Excel cut/Paste Problem: Year changes after data is copy and paste Asif Excel Discussion (Misc queries) 2 December 9th 05 05:16 PM
Copy and Paste macro needs to paste to a changing cell reference loulou Excel Programming 0 February 24th 05 10:29 AM
Macro to Copy/Paste then Paste to Next Line tomkarakowski Excel Programming 1 May 28th 04 01:19 AM


All times are GMT +1. The time now is 09:41 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"