J jerry chapman Feb 19, 2005 #1 How can I find the sheet names for an Excel program, by using a macro?
H Harald Staff Feb 19, 2005 #2 Sub test() Dim sh As Object For Each sh In ActiveWorkbook.Sheets MsgBox sh.Name Next End Sub HTH. Best wishes Harald
Sub test() Dim sh As Object For Each sh In ActiveWorkbook.Sheets MsgBox sh.Name Next End Sub HTH. Best wishes Harald
M Myrna Larson Feb 19, 2005 #3 What do you mean "sheet names for ... program"? Sheetnames relate to a workbook, not to a macro code. Or do you mean Module names? If the latter, I believe you can find help on using routines in the VB Extensibility library by going to www.cpearson.com.
What do you mean "sheet names for ... program"? Sheetnames relate to a workbook, not to a macro code. Or do you mean Module names? If the latter, I believe you can find help on using routines in the VB Extensibility library by going to www.cpearson.com.