Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
sax sax is offline
external usenet poster
 
Posts: 6
Default How do I look at other documents?

I'm attempting to create a set of spreadsheets that will be generated
automatically based on a master spreadsheet (i.e. taking a master schedule
for six people and having excel automatically generate the six individual
schedule). What would the command line be to refrence a different document
or a different sheet in the same document?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 644
Default How do I look at other documents?

Many options here
Workbooks:
Dim wb as Workbook
Set wb = Workbooks("Book1.xls")
wb.Activate

Workbooks("Book1.xls").Activate

Windows("Book1.xls").Activate

Worksheets:
Dim ws as Worksheet
Set ws = Workbooks("Book1.xls").Sheets("Sheet1")
ws.Activate

Workbooks("Book1.xls").Sheets("Sheet1").Activate

Workbooks("Book1.xls").Sheets(1).Activate

I hope one of these methods works for you.

Charles

Sax wrote:
I'm attempting to create a set of spreadsheets that will be generated
automatically based on a master spreadsheet (i.e. taking a master schedule
for six people and having excel automatically generate the six individual
schedule). What would the command line be to refrence a different document
or a different sheet in the same document?


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
How do I delete the test documents in my recent documents? mrjack Excel Discussion (Misc queries) 1 February 14th 10 04:08 PM
turning 2007 excel documents into 2003 excel documents La Shawn Dillon Excel Discussion (Misc queries) 2 February 15th 08 11:23 PM
excel documents won't open from my documents folder Paul1961 Excel Discussion (Misc queries) 2 January 15th 06 05:31 PM
Excel Documents Don't Appear in My Recent Documents Addi Excel Discussion (Misc queries) 4 July 24th 05 09:43 PM
Two documents with the same name p16ande Excel Discussion (Misc queries) 1 April 20th 05 02:26 PM


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