Off-topic Talk Where overpaid, underworked S2000 owners waste the worst part of their days before the drive home. This forum is for general chit chat and discussions not covered by the other off-topic forums.

Two Excel Questions

Thread Tools
 
Old Apr 1, 2002 | 09:33 AM
  #1  
magician's Avatar
Thread Starter
Registered User
 
Joined: Jul 2001
Posts: 6,592
Likes: 0
From: Yorba Linda, CA
Default Two Excel Questions

I have a format for an Excel workbook, but the number and names of the worksheets will change from use to use. Two questions:

1) Is there any way to automate creating the worksheets with the appropriate names? (e.g., reading from a text file)

2) Is there any way to automate creating formulas which use the worksheet names? (I'll have a summary sheet giving results for all of the worksheets together. I would like to automate the setup so it knows initially that there are 15 worksheets, say, and that it totals the bottom lines from all 15.)

Thanks!
Reply
Old Apr 1, 2002 | 09:45 AM
  #2  
jedwards's Avatar
20 Year Member
Liked
 
Joined: Jul 2001
Posts: 28,318
Likes: 9
From: This is not my house!
Default

Couldn't you create a Macro? Don't know how varied your text files are but it would seem you could do this.
Reply
Old Apr 1, 2002 | 10:03 AM
  #3  
magician's Avatar
Thread Starter
Registered User
 
Joined: Jul 2001
Posts: 6,592
Likes: 0
From: Yorba Linda, CA
Default

[QUOTE]Originally posted by jedwards
[B]Couldn't you create a Macro?
Reply
Old Apr 1, 2002 | 11:04 AM
  #4  
edasaurus's Avatar
Registered User
20 Year Member
 
Joined: Oct 2000
Posts: 293
Likes: 0
From: Culver City
Default

[QUOTE]Originally posted by magician
[B]

I tried this and the crux of the problem seems to be getting the name of a worksheet as the value of a variable in VB.
Reply
Old Apr 1, 2002 | 11:39 AM
  #5  
magician's Avatar
Thread Starter
Registered User
 
Joined: Jul 2001
Posts: 6,592
Likes: 0
From: Yorba Linda, CA
Default

[QUOTE]Originally posted by edasaurus
[B]I'm not sure I understand your issue, but if you're trying to read in the names of the worksheets, you could do something like this:
[CODE][COLOR=darkblue]
Reply
Old Apr 1, 2002 | 01:27 PM
  #6  
edasaurus's Avatar
Registered User
20 Year Member
 
Joined: Oct 2000
Posts: 293
Likes: 0
From: Culver City
Default

To create a new sheet using another as a template you could do something like this:

[CODE]

Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
RaptorsGeoMetro
The Corner
9
May 29, 2002 08:01 PM
integrate
The Corner
16
May 19, 2002 02:38 AM
DR. JEKYLL
Off-topic Talk
14
Apr 12, 2002 05:53 PM
magician
Off-topic Talk
9
Dec 26, 2001 12:00 AM
mingster
Off-topic Talk
13
May 10, 2001 03:10 PM




All times are GMT -8. The time now is 11:10 AM.