Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 553
Default Loading Sheet Index number into array

I have an array that I want to load sheet index numbers into. The idea being
to load the VBA name of the sheet into the array with the intent of
extracting the excel version of the sheet later. So say in the VBA project
windows it says:

Sheet3 (inputs)

How to I load the text value of the VBA name. For example I want the fist
element of the array to say "Sheet(3)".

Then what I want to do is is I want to extract the actuual excel sheet name
"Input" from the index:

Sub ExtractSheetName ()
Dim Sheetcount As Integer
Dim SheetName As String

For Sheetcount = 1 To B
SheetName = ?
Debut.Print SheetName

Next

End Sub
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 553
Default Loading Sheet Index number into array

Ok I know how to extract the VBA name:

InputSheetArray(0) = Sheet3.CodeName

But how do I extract the Excel Name from this?


Thanks

EM

"ExcelMonkey" wrote:

I have an array that I want to load sheet index numbers into. The idea being
to load the VBA name of the sheet into the array with the intent of
extracting the excel version of the sheet later. So say in the VBA project
windows it says:

Sheet3 (inputs)

How to I load the text value of the VBA name. For example I want the fist
element of the array to say "Sheet(3)".

Then what I want to do is is I want to extract the actuual excel sheet name
"Input" from the index:

Sub ExtractSheetName ()
Dim Sheetcount As Integer
Dim SheetName As String

For Sheetcount = 1 To B
SheetName = ?
Debut.Print SheetName

Next

End Sub

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Loading Sheet Index number into array


?sheet3.Name
Sheet3

NickHK

"ExcelMonkey" wrote in message
...
Ok I know how to extract the VBA name:

InputSheetArray(0) = Sheet3.CodeName

But how do I extract the Excel Name from this?


Thanks

EM

"ExcelMonkey" wrote:

I have an array that I want to load sheet index numbers into. The idea

being
to load the VBA name of the sheet into the array with the intent of
extracting the excel version of the sheet later. So say in the VBA

project
windows it says:

Sheet3 (inputs)

How to I load the text value of the VBA name. For example I want the

fist
element of the array to say "Sheet(3)".

Then what I want to do is is I want to extract the actuual excel sheet

name
"Input" from the index:

Sub ExtractSheetName ()
Dim Sheetcount As Integer
Dim SheetName As String

For Sheetcount = 1 To B
SheetName = ?
Debut.Print SheetName

Next

End Sub



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
Index number for CommandBar right-click on sheet tab? Shane in Canberra[_2_] Excel Programming 3 June 16th 06 08:34 AM
V-Lookup, column index number indicator in table array Karen.Robertson@PMI Excel Worksheet Functions 0 May 17th 06 10:51 PM
find the index number for an array element Dick Minter[_2_] Excel Programming 8 March 20th 06 11:01 PM
Loading array into list box r wilcox Excel Programming 5 June 20th 05 11:14 PM
Loading Excel Array from VB Array Faster ExcelMonkey[_3_] Excel Programming 3 January 22nd 04 02:49 AM


All times are GMT +1. The time now is 05:18 PM.

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"