How do I check to find out if Tempdata.xls is open and if it is close it?
D Dave Peterson Oct 20, 2006 #2 I'd just try to close it: on error resume next 'in case it isn't open workbooks("tempdata.xls").close savechanges:=true 'false???
I'd just try to close it: on error resume next 'in case it isn't open workbooks("tempdata.xls").close savechanges:=true 'false???
T Tom Ogilvy Oct 20, 2006 #3 On error Resume next workbooks("Tempdata.xls").Close SaveChanges:=False On Error goto 0
O Oldjay Apr 17, 2008 #4 Thanks Dave Peterson said: I'd just try to close it: on error resume next 'in case it isn't open workbooks("tempdata.xls").close savechanges:=true 'false??? Click to expand...
Thanks Dave Peterson said: I'd just try to close it: on error resume next 'in case it isn't open workbooks("tempdata.xls").close savechanges:=true 'false??? Click to expand...