Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default range copy question

i see that this will copy a range from one sheet to another in the same
workbook
rng.Copy Destination:=Worksheets("Sheet3").Range("A1")

now, how to you adapt this if sheet3 is in another workbook that is open?

--


Gary



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 88
Default range copy question

Try:
rng.Copy Destination:=Workbooks("Bk2.xls").Sheets("Sheet3") .Range("A1")

Hope this helps
Rowan

Gary Keramidas wrote:
i see that this will copy a range from one sheet to another in the same
workbook
rng.Copy Destination:=Worksheets("Sheet3").Range("A1")

now, how to you adapt this if sheet3 is in another workbook that is open?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default range copy question

think i got it. file2 is a variable i set

=Workbooks(File2).Worksheets("Sheet1").Range("A1")


--


Gary


"Gary Keramidas" wrote in message
...
i see that this will copy a range from one sheet to another in the same
workbook
rng.Copy Destination:=Worksheets("Sheet3").Range("A1")

now, how to you adapt this if sheet3 is in another workbook that is open?

--


Gary





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
RANGE EXCEL copy cell that meets criteria in a range confused Excel Worksheet Functions 3 March 27th 08 01:41 PM
Create/copy combo boxes in one range if condition is met in a different range LB[_4_] Excel Programming 4 September 30th 05 12:21 AM
Range Question / error 1004: method Range of object Worksheet has failed Paul Excel Programming 3 April 7th 05 02:56 PM
Code to copy range vs Copy Entire Worksheet - can't figure it out Mike Taylor Excel Programming 1 April 15th 04 08:34 PM
Range COPY function - how to copy VALUES and not formulas James Cooke Excel Programming 1 August 21st 03 07:04 PM


All times are GMT +1. The time now is 07:33 PM.

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

About Us

"It's about Microsoft Excel"