Hello,
I have a short routine where I wish to -
1. Open a workbook
2. Close a window
3. Delete a file
The routine appears to be stopping after #2. I can run each on off the operations 1,2,3 separately via command buttons and it work fine. Any suggestions?
Thanks for viewing,
Steve
I have a short routine where I wish to -
1. Open a workbook
2. Close a window
3. Delete a file
The routine appears to be stopping after #2. I can run each on off the operations 1,2,3 separately via command buttons and it work fine. Any suggestions?
VBA Code:
Public Sub Repair_NO()
On Error Resume Next
Workbooks.Open("" & Range("T5") & Range("V6") & "").RunAutoMacros Which:=xlAutoOpen
Windows("Amort_Temp.xlsb").Close savechanges:=False
Kill ActiveWorkbook.Path & Application.PathSeparator & "Amort_Temp.xlsb"
End Sub
Thanks for viewing,
Steve