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 04-01-2002, 09:33 AM
  #1  
Registered User

Thread Starter
 
magician's Avatar
 
Join Date: Jul 2001
Location: Yorba Linda, CA
Posts: 6,592
Likes: 0
Received 0 Likes on 0 Posts
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!
Old 04-01-2002, 09:45 AM
  #2  
Registered User

 
jedwards's Avatar
 
Join Date: Jul 2001
Location: This is not my house!
Posts: 28,316
Received 7 Likes on 6 Posts
Default

Couldn't you create a Macro? Don't know how varied your text files are but it would seem you could do this.
Old 04-01-2002, 10:03 AM
  #3  
Registered User

Thread Starter
 
magician's Avatar
 
Join Date: Jul 2001
Location: Yorba Linda, CA
Posts: 6,592
Likes: 0
Received 0 Likes on 0 Posts
Default

[QUOTE]Originally posted by jedwards
[B]Couldn't you create a Macro?
Old 04-01-2002, 11:04 AM
  #4  
Registered User
 
edasaurus's Avatar
 
Join Date: Oct 2000
Location: Culver City
Posts: 293
Likes: 0
Received 0 Likes on 0 Posts
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.
Old 04-01-2002, 11:39 AM
  #5  
Registered User

Thread Starter
 
magician's Avatar
 
Join Date: Jul 2001
Location: Yorba Linda, CA
Posts: 6,592
Likes: 0
Received 0 Likes on 0 Posts
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]
Old 04-01-2002, 01:27 PM
  #6  
Registered User
 
edasaurus's Avatar
 
Join Date: Oct 2000
Location: Culver City
Posts: 293
Likes: 0
Received 0 Likes on 0 Posts
Default

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

[CODE]

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



Quick Reply: Two Excel Questions



All times are GMT -8. The time now is 12:54 PM.