Hide a workbook before saving

G

Guest

I have given the user a menu option to set the ISADDIN property of my addin
to false. When they choose the option they are able to make changes to a
parameter sheet. I want to ensure that the the workbook is still saved as an
addin, so I have set ISADDIN back to true in the beforesave event. For some
reason though, excel doesn't always do what I want it to do: The beforesave
event is triggered, and the property gets changed, but then instead of saving
the addin, excel saves the active workbook, which, due to the fact that it's
just been hidden, can't be the addin. In the case where the addin is the
only open workbook, it gets saved as I want it to.

any advice??

Thanks
Rob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top