HI so recently I have this code below which ends my macro. The vba I use below on my computer works fine and closes the active workbook and doesn't save it like its suppose.
On another computer it started to break in red below. I can not figure out why I tried everything. I even removed that line of code and it didn't break, but left the sheet open. Does anyone have an idea why this is happening on another computer, but not mine or maybe a way around it?
Debug message is "Run Time Error -2147417848 (80010108) Method close of object window Failed
On another computer it started to break in red below. I can not figure out why I tried everything. I even removed that line of code and it didn't break, but left the sheet open. Does anyone have an idea why this is happening on another computer, but not mine or maybe a way around it?
Debug message is "Run Time Error -2147417848 (80010108) Method close of object window Failed
Code:
Sub Close10()
Application.DisplayAlerts = False
Workbooks("Mapping Table.xlsx").Close savechanges:=True
MsgBox "Fix names in Yellow before running Sheet"
[COLOR=#ff0000] ActiveWindow.Close savechanges:=False <--------- Debug[/COLOR]
Application.DisplayAlerts = True
End Sub