I have a macro that closes workbook one and opens workbook two. These are in user forms. It works fine except that workbook two automatically opens a user form and workbook one wont finish closing until a the user form is deactivated. I do not want this. Users will not have the ability to exit the form when this is ready to publish. Here is the codes and I hope you can help.
From workbook 1 to workbook 2
'Opens Workbook 2
Workbooks.Open Filename:=ThisWorkbook.Path & "\workbook2.xls"
'Close Workbook selection
Unload Me
'Closes Workbook 1 WITHOUT Saving
ThisWorkbook.Close False
Workbook 2 open
Private Sub Workbook_Open()
'Always Open on Sheet1.
Worksheets("Sheet1").Activate
Range("A1").Select
'Open the Roster Welcome User Form.
Userform3.Show
End Sub
Thank you in advance.
From workbook 1 to workbook 2
'Opens Workbook 2
Workbooks.Open Filename:=ThisWorkbook.Path & "\workbook2.xls"
'Close Workbook selection
Unload Me
'Closes Workbook 1 WITHOUT Saving
ThisWorkbook.Close False
Workbook 2 open
Private Sub Workbook_Open()
'Always Open on Sheet1.
Worksheets("Sheet1").Activate
Range("A1").Select
'Open the Roster Welcome User Form.
Userform3.Show
End Sub
Thank you in advance.