OK, so as it stands I have 2 files; 1.xls and 2.xls.
file1 has a macro:
Sub One()
Workbooks.Open Filename:="c:/2.xls"
MsgBox "You'll never see this message "
End Sub
and file2 has this in its ThisWorkbook:
Private Sub Workbook_Open()
Workbooks("1.xls"
.Close savechanges:=False
MsgBox "You'll never see this message either"
End Sub
As far as I can tell, what's happening is file1's macro will not continue past the open command until file2's macro is finished. Closing File1 while it's macro hasn't finished causes VB to halt and reset the macros. I'm looking for any suggestions at all, I'm totally lost as for a fix. I was thinking perhaps there was a way to force file1's macro to complete before file 2's Workbook_open command runs, but I may be on the right track. All comments/suggestions/fixes (and bumps) appreciated.
Other thread with some clarification:
file1 has a macro:
Sub One()
Workbooks.Open Filename:="c:/2.xls"
MsgBox "You'll never see this message "
End Sub
and file2 has this in its ThisWorkbook:
Private Sub Workbook_Open()
Workbooks("1.xls"
MsgBox "You'll never see this message either"
End Sub
As far as I can tell, what's happening is file1's macro will not continue past the open command until file2's macro is finished. Closing File1 while it's macro hasn't finished causes VB to halt and reset the macros. I'm looking for any suggestions at all, I'm totally lost as for a fix. I was thinking perhaps there was a way to force file1's macro to complete before file 2's Workbook_open command runs, but I may be on the right track. All comments/suggestions/fixes (and bumps) appreciated.
Other thread with some clarification: