Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 75
Default Help in copying range

Got an error with the following
Worksheets("mod").Range("c1:g1").copy _
Destination:=Worksheets("mix").Cells(1, 9)


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Help in copying range

If the error is subscript out of range, then either you don't have a sheet
named mod or you don't have a sheet named mix or you have neither. Assumes
neither sheet is protected.

--
Regards,
Tom Ogilvy

"crapit" wrote in message
...
Got an error with the following
Worksheets("mod").Range("c1:g1").copy _
Destination:=Worksheets("mix").Cells(1, 9)




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Help in copying range


also:
OP is not using qualified references, thus be aware that the code
(attempts) to work with the active workbook.


--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


Tom Ogilvy wrote :

If the error is subscript out of range, then either you don't have a
sheet named mod or you don't have a sheet named mix or you have
neither. Assumes neither sheet is protected.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 75
Default Help in copying range

So can i say that the code is correct?
"keepITcool" wrote in message
ft.com...

also:
OP is not using qualified references, thus be aware that the code
(attempts) to work with the active workbook.


--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


Tom Ogilvy wrote :

If the error is subscript out of range, then either you don't have a
sheet named mod or you don't have a sheet named mix or you have
neither. Assumes neither sheet is protected.



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
Copying a Range Peter[_8_] Excel Discussion (Misc queries) 1 December 11th 07 04:14 AM
Need VBA Help in Copying Range WayneK[_2_] Excel Programming 5 June 6th 05 07:31 PM
Searching a range and copying values into a new range.... **Please help** :( Lancia Excel Programming 1 September 29th 04 01:08 PM
Copying Range PokerDude Excel Programming 1 February 5th 04 04:43 AM
Copying a range to the row below Trevor[_3_] Excel Programming 2 October 20th 03 07:51 PM


All times are GMT +1. The time now is 06:15 AM.

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"