If the user disables macros when they open the workbook, they can do
whatever they want.
Bob Flanagan
Macro Systems
http://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel
"Will Sellers" <(E-Mail Removed)> wrote in message
news:X3h8i.1477$WE4.397@trndny01...
>I setup a vb that disables the save as on the file menu.
> the code works as expected. But only if I click on run in the VB editor.
> In general I have
> sub
> command saveas enable=false (not exact syntax )
> end sub
>
> How do I get this to execute when I open the workbook?
> When I close the workbook I want to reverse the code so that the next
> workbookthat is opened does not have saveas greyed.
>
> I have the code, but where to put it, so that it executes, is my problem.
>
>