code change to command buttons
Private Sub CommandButton6_Click()
ScreenUpdating = False
ShowDialog "FireSafety"
End Sub
Private Sub CommandButton7_Click()
ScreenUpdating = False
ShowDialog "FirstAid"
End Sub
Add this to the top of the Userform1 code module, along this the other declarations.
Public ShowName As String
revise ShowPicture routine
Sub ShowPicture()
' Displays on top of semi-transparent UserForm
If Me.ShowName = "FirstAid" Then
FirstAid.Show
Else
FireSafety.Show
End If
Unload Me
End Sub
Bookmarks