+ Reply to Thread
Results 1 to 3 of 3

How to run module in visual basic editor

  1. #1
    Forum Contributor
    Join Date
    10-26-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2010
    Posts
    138

    How to run module in visual basic editor

    I have Opened a workbook and start the Visual Basic Editor (Alt + F11). Right Clicked in the project explorer window and selected Insert > Module. Copied the code into the new Module then suppose to select Run and all worksheets should be Unprotected in that Workbook. I have done everything except select run.. Where is the select run button. Thank you...

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: How to run module in visual basic editor

    If you just want to test your code from the Visual Basic Editor, you can run a Sub by either of the following:
    • Position the text cursor anywhere inside the Sub then press F5
    • From the menu, select Run, then "Run Sub, UserForm"

    For other ways to run your macro:

    From your Excel worksheet, you can select Developer, Macros, then find the macro in the list and press Run (the macro will have to be declared as Public for it to be visible here)

    You can create a button that is visible from your worksheet to cause the macro to run.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Contributor
    Join Date
    10-26-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2010
    Posts
    138

    Re: How to run module in visual basic editor

    It works. Thank you guru

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1