I have both codes now:
Private Sub Workbook_Activate()
frmMain.Show
End Sub
and
Private Sub Workbook_Open()
frmMain.Show
End Sub
which works great if there is another workbook open. Unfortunately, it doesn't work if its the only Workbook open. I'm using this code to minimize the application and the userform:
Private Sub CommandButton24_Click()
frmMain.Hide
Application.WindowState = xlMinimized
End Sub
I would like the userform to be displayed if the user selects the workbook again. Hope that makes sense!!
Bookmarks