Run macro

  • Thread starter Thread starter confused!!
  • Start date Start date
C

confused!!

after editing a macro what do i need to do before it iwll run again?
 
As long as your structure does not have blatant errors that prohibit the
macro from starting, you should be able to do one of the following.

From VBE:
place cursor in macro, press F5.
place cursor in macro, goto Run - Run Sub

From Workbook:
Press Alt+F8, choose macro, run
goto Tools - Macro - Macros, choose macro, run.

Note that all but the first option require that your sub be public, and not
private such as:

Private Sub MyMacro()
'Should be:
'Sub MyMacro()
'do something
End Sub
 

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