LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
al al is offline
external usenet poster
 
Posts: 363
Default Variable workbook name references

I want to copy values from my active workbook to a series of open, inactive
workbooks. I know this can be done by explicitly naming each destination
workbook:

Cells(1,1).Copy
Destination:=Workbooks(€śWkbk1.xls€ť).Sheets(€ś Name€ť).Range("A1")

In my application, I want to synthesize the workbook names as variables from
values in a master file and replace the workbook name €śWkbk.xls€ť with each
variable needed. If I try to just replace the name with a variable, I get a
€śSubscript out of range€ť error. How can I do this without having to activate
each workbook in turn?

--
Al C
 
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
variable cell references jjk98 Excel Discussion (Misc queries) 4 April 30th 08 01:38 AM
VLOOKUP variable array references Simon Excel Discussion (Misc queries) 1 June 22nd 07 07:09 PM
variable cell references ???? kiethb Excel Discussion (Misc queries) 2 February 10th 06 08:22 PM
Variable Column references Gidders Excel Worksheet Functions 1 July 15th 05 07:54 PM
variable worksheet references mattbloodgood Excel Discussion (Misc queries) 3 July 7th 05 08:34 PM


All times are GMT +1. The time now is 10:03 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"