View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
JeffTO JeffTO is offline
external usenet poster
 
Posts: 14
Default Application defined or object defined error - Not Caused by Code

Hello and thanks for the reply

That did not work - before I went to the trouble of writing code to
check for open workbooks and then activating one of them I tried it
with a hard coded defined workbook ("Book9") and it did activate the
workbook but I am still getting the same error.

It has to do with running the code from the Commandbar button - when I
run the code via Tools/Macro/ and select the macro name - the code
runs fine - so I think there is something with trying to close a
workbook with a Commandbar button - at least that is what it looks
like to me.

Thanks,

Jeff