ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Run macro (https://www.excelbanter.com/excel-discussion-misc-queries/242282-run-macro.html)

confused!!

Run macro
 
after editing a macro what do i need to do before it iwll run again?

Bob I

Run macro
 
Click Run, Reset.

confused!! wrote:

after editing a macro what do i need to do before it iwll run again?



Luke M

Run macro
 
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

--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"confused!!" wrote:

after editing a macro what do i need to do before it iwll run again?



All times are GMT +1. The time now is 08:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com