Pondcroft13
New Member
- Joined
- May 27, 2010
- Messages
- 32
Hi All,
I am using part of the below formula to always start with the sheet "Dynamic UI" when the workbook is opened. It is not working.
Any ideas?
Private Sub Workbook_Open()
Dim frmSplash As GPUActionsLog
'Show the form modelessly
Set frmSplash = New GPUActionsLog
frmSplash.Show vbModeless
'Process the startup code
Application.Wait Now + TimeValue("00:00:5")
'Unload the splash screen
Unload frmSplash
Set frmSplash = Nothing
'open at a sheet (and range) you want regardless
'of whether or not the sheet has been renamed
'Set the sheet to open (use its codename here)
Const StartUpSheet = "Dynamic UI"
'Set the cell to activate
Const StartUpCell = "A1"
Dim N&
For N = 1 To Sheets.Count
If Sheets(N).CodeName = StartUpSheet Then
Sheets(N).Activate
Range(StartUpCell).Activate
Exit For
End If
Next
End Sub
Kind regards,
Chris
I am using part of the below formula to always start with the sheet "Dynamic UI" when the workbook is opened. It is not working.
Any ideas?
Private Sub Workbook_Open()
Dim frmSplash As GPUActionsLog
'Show the form modelessly
Set frmSplash = New GPUActionsLog
frmSplash.Show vbModeless
'Process the startup code
Application.Wait Now + TimeValue("00:00:5")
'Unload the splash screen
Unload frmSplash
Set frmSplash = Nothing
'open at a sheet (and range) you want regardless
'of whether or not the sheet has been renamed
'Set the sheet to open (use its codename here)
Const StartUpSheet = "Dynamic UI"
'Set the cell to activate
Const StartUpCell = "A1"
Dim N&
For N = 1 To Sheets.Count
If Sheets(N).CodeName = StartUpSheet Then
Sheets(N).Activate
Range(StartUpCell).Activate
Exit For
End If
Next
End Sub
Kind regards,
Chris