theprincipal78
Board Regular
- Joined
- Aug 5, 2009
- Messages
- 68
Hi all
I'm relatively new to vba.
as the title indicates I'm trying to loop through a workbook and rename all visible worksheets with a dialog box.
I was trying to combine something like the below.
Instead of calling every sheetname in a msgbox I rename every sheet with a dialog box.
Sub MsgBox_CallAllMySheets()
Dim sht As Worksheet
For Each sht In Sheets
'call sheetname in a msgbox
'MsgBox_PartOfCallAllMySheets (sht.Name)
'rename sheet with test application
Application.Dialogs(284).Show
Next sht
End Sub
I'm greatfull for any assistance.
thanks
I'm relatively new to vba.
as the title indicates I'm trying to loop through a workbook and rename all visible worksheets with a dialog box.
I was trying to combine something like the below.
Instead of calling every sheetname in a msgbox I rename every sheet with a dialog box.
Sub MsgBox_CallAllMySheets()
Dim sht As Worksheet
For Each sht In Sheets
'call sheetname in a msgbox
'MsgBox_PartOfCallAllMySheets (sht.Name)
'rename sheet with test application
Application.Dialogs(284).Show
Next sht
End Sub
I'm greatfull for any assistance.
thanks