Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I would like to get the name of the first sheet in any workbook that an user chooses. Is this possible? I've tried wb.sheets(1).name. Doesn't work. Please assist. Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Here is one way right out of VBA help file.
For Each sh In Workbooks("BOOK1.XLS").Windows(1).SelectedSheets If sh.Name = "Sheet1" Then MsgBox "Sheet1 is selected" Exit For End If Next You can also try: ActiveSheet.Name "OffDev" wrote in message ... Hello, I would like to get the name of the first sheet in any workbook that an user chooses. Is this possible? I've tried wb.sheets(1).name. Doesn't work. Please assist. Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Merge 7 files to 1 workbook/7Sheets and then 1 sheet of the new workbook | Excel Programming | |||
Help needed: Getting all sheet setup data from one workbook toanother workbook | Excel Programming | |||
Copy rows from multiple workbook into a different workbook (sheet) | Excel Programming | |||
Select sheet tabs in workbook & save to separate workbook files | Excel Worksheet Functions |