Tried putting Unload Me before code that opens workbook with NO luck
Apologies .... I had wondered how you got the code into those boxes
Private Sub cbFiles_Change()
Image1.Picture = LoadPicture(ThisWorkbook.Path & "\" & cbFiles.Value & ".jpg")
End Sub
Private Sub cmdOpen_Click()
If cbFiles.Value = "" Then
If MsgBox("You have not selected anything yet. If you continue this selection box will close. Do you want to continue?", vbQuestion + vbYesNo) <> vbYes Then
Exit Sub
End If
End If
Select Case Me.cbFiles
Case "QTR1"
Workbooks.Open(Filename:="C:\Users\Paul\Documents\Workbook A.xlsx").Activate
Case "QTR2"
Workbooks.Open(Filename:="C:\Users\Paul\Documents\Workbook B.xlsx").Activate
Case "QTR3"
Workbooks.Open(Filename:="C:\Users\Paul\Documents\Workbook C.xlsx").Activate
Case "QTR4"
Workbooks.Open(Filename:="C:\Users\Paul\Documents\Workbook D.xlsx").Activate
Case "Daily Audits Completed QTR1"
Workbooks.Open(Filename:="C:\Users\Paul\Documents\Workbook E.xlsx").Activate
Case "Daily Audits Completed QTR2"
Workbooks.Open(Filename:="C:\Users\Paul\Documents\Workbook F.xlsx").Activate
Case "Daily Audits Completed QTR3"
Workbooks.Open(Filename:="C:\Users\Paul\Documents\Workbook G.xlsx").Activate
Case "Daily Audits Completed QTR4"
Workbooks.Open(Filename:="C:\Users\Paul\Documents\Workbook H.xlsx").Activate
End Select
Unload Me
End Sub
Private Sub cmdClose_Click()
Unload Me
End Sub
Regards ...
Paul Norris
Bookmarks