Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have one sheet in my workbook named "Work Data".
If this sheet is active, then the following expression Application.ActiveSheet.Name .... will return a string of "Work Data". However, I don't want the name of the string in the sheet tab, I want the name from my VBA project window (named Sheet1). How can I retrieve the VBA name of my sheet?? thank u |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Application.ActiveSheet.CodeName
Be aware though that newly added sheets since the workbook was opened while the VBE is closed will not have a codeName. There are various workarounds to force one, search this ng. Regards, Peter T "Robert Crandal" wrote in message ... I have one sheet in my workbook named "Work Data". If this sheet is active, then the following expression Application.ActiveSheet.Name ... will return a string of "Work Data". However, I don't want the name of the string in the sheet tab, I want the name from my VBA project window (named Sheet1). How can I retrieve the VBA name of my sheet?? thank u |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
MsgBox ActiveSheet.CodeName Mike "Robert Crandal" wrote: I have one sheet in my workbook named "Work Data". If this sheet is active, then the following expression Application.ActiveSheet.Name .... will return a string of "Work Data". However, I don't want the name of the string in the sheet tab, I want the name from my VBA project window (named Sheet1). How can I retrieve the VBA name of my sheet?? thank u . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Send Data From Active Sheet to Closed Sheet on Network | Excel Programming | |||
active sheet is 'slow' to be active | Excel Programming | |||
I need to sort an active sheet using the col of the active cell | Excel Programming | |||
Copy my active sheet to a new sheet and open with an input form | Excel Programming | |||
Copy from active sheet and paste into new sheet using info from cell in active | Excel Programming |