Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
ChrisJ
 
Posts: n/a
Default

If I understand your dilemma correctly, it would work for you if you run a
macro like this on the output file before opening the linked file:
Dim sName As String
Dim i As Integer
For i = 1 To ActiveWorkbook.Sheets.Count
Sheets(i).Select
sName = Right(ActiveWorkbook.ActiveSheet.Name,
Len(ActiveWorkbook.ActiveSheet.Name) - InStr(ActiveWorkbook.ActiveSheet.Name,
".") - 1)
ActiveWorkbook.ActiveSheet.Name = sName
Next i

This would rename the sheets by removing the number, the period and the
space in fron of "Function", "Event", etc.

Chris

"JClub" wrote:

I am building a spreadsheet that uses another workbook as input data. The
workbook is created by a software package and names its worksheets as follows:
1. Function; 2. Event; 3. Position etc etc.

Here is the rub, for reasons that I cannot control, the software package
sometimes names the worksheets like the manner above, and sometimes like this:
1. Event; 2. Position; 3. Function etc or any combination of these
names.
The information in the "Function" worksheets are all simillar despite the
varying "nn. " prefix.

There are as many as 15 worksheets in each workbook.

Here is what I think I need:
a function that outputs the name of the [nth] worksheet listed in a
specified workbook.

Failing that, I would like that ability to reference worksheet data without
knowing the worksheet name in advance.

Thanks in advance.

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
Dynamic Names can solve my problem? shmurphing Excel Worksheet Functions 4 December 24th 04 12:38 AM
Indirect reference from one worksheet to another Bill Sturdevant Excel Worksheet Functions 2 December 17th 04 01:23 PM
Worksheet copy problem - local names Jack Sheet Excel Discussion (Misc queries) 2 December 2nd 04 10:02 AM
Worksheet name and Backward compatibility Rich Excel Discussion (Misc queries) 3 November 30th 04 06:10 PM
Worksheet names JF Bouthillier Excel Worksheet Functions 3 November 6th 04 04:28 AM


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