how to test code and/or run code

  • Thread starter Thread starter Danny
  • Start date Start date
D

Danny

I would like to:
test the code or button that I inserted with code on spreadsheet.

allow the user to launch the spreadsheet in run mode.

(newbie)
how to do?
 
Before you turn over your workbook to your users, you'll want to test your code.

Click the button to start the macro.

You may want to insert some breakpoints in your code so that you can Step
through it.

Select a line in your code that does something (not a Dim) and hit F9
(Debug|toggle breakpoint).

If it was an ok line, you'll see a red dot on the left border and the line will
be shaded red.

When your running code gets to this line, it'll stop and wait for you. Hit F8
to go line by line through the code.

I'm not sure what your second question is. If the user allows macros to be run
(his/her choice--not yours), then they can click the button.
 

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