Save

  • Thread starter Thread starter Kas
  • Start date Start date
K

Kas

I need to write a macro that will assign a procedure to
the save button on the toolbar. Because of the way it
opens, I can't go to Tools - Customize - right-click on
the Save button, choose Assign macro. Is there code that
will do this?

Any help would be GREATLY appreciated.
 
With Application.CommandBars("Standard").Controls(3)
.OnAction "NameOfYourMacroHere"
End With

You'll need a re-set code as well though.............
 
Unfortunately, that did not work.
-----Original Message-----
With Application.CommandBars("Standard").Controls(3)
.OnAction "NameOfYourMacroHere"
End With

You'll need a re-set code as well though.............

--
HTH
Roger
Shaftesbury (UK)








.
 

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

Back
Top