Hello,
I’m having a small issue with my routine stopping after one line of code. It stops after
ActiveWindow.Close savechanges:=False
It never processes anything after this (e.g., I do not see the message box). If I remark out the line above, the routine continues through the message box. Any suggestions would be appreciated.
Following is a snipit (test) of my code:
Thanks for viewing,
Steve K.
I’m having a small issue with my routine stopping after one line of code. It stops after
ActiveWindow.Close savechanges:=False
It never processes anything after this (e.g., I do not see the message box). If I remark out the line above, the routine continues through the message box. Any suggestions would be appreciated.
Following is a snipit (test) of my code:
VBA Code:
Public Sub Repair_NO()
Workbooks.Open("C:\Users\Steven Kipping\Desktop\5407.xlsb").RunAutoMacros Which:=xlAutoOpen
Windows("Amort_Temp1.xlsb").Activate
ActiveWindow.Close savechanges:=False
Kill "C:\Users\Steven Kipping\Desktop\test.xlsb"
MsgBox "Try_MSG"
End Sub
Thanks for viewing,
Steve K.