+ Reply to Thread
Results 1 to 6 of 6

Following macros from the Modules

Hybrid View

  1. #1
    Registered User
    Join Date
    11-04-2018
    Location
    Manila
    MS-Off Ver
    2016
    Posts
    16

    Unhappy Following macros from the Modules

    Hi all, I am new with VBA and im still learning lots of things. Is there a way for me to know which particular sheets/command buttons/cells is the module assigned to? I have a file that has macro and I am trying to follow through the modules' codes but couldn't really understand.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Following macros from the Modules

    For command buttons, right click on the button and select assign macro. In the dialogue box at the top you will see what macro is activated.

    For sheets, right click on the sheet tab and select view code. Within the sheet code, you may see some Call's to other VBA scripts. Highlight the name of the Call and select Shift + F2 which will take you to the code.

    Hope this helps...
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    11-04-2018
    Location
    Manila
    MS-Off Ver
    2016
    Posts
    16

    Re: Following macros from the Modules

    Hi Jeff, thank you so much. Exactly what Im asking for. Last question though, so if i select the View Code option and am directed to the VBE and dont see anything written on the screen, then it means that there are no Macros assigned to that particular sheet?

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Following macros from the Modules

    Correct, but also while your in the VBE, look at the tree on the left side of the screen and now you can work through all the worksheets and any modules.

  5. #5
    Registered User
    Join Date
    11-04-2018
    Location
    Manila
    MS-Off Ver
    2016
    Posts
    16

    Re: Following macros from the Modules

    thank you so much! much appreciated help

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Following macros from the Modules

    You are very welcome. Happy to help.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Run multiple VBA/Macros/Modules Help
    By JustWantThisToWork in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-05-2018, 03:25 PM
  2. Dim to use in multiple modules/macros
    By prif in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-28-2016, 08:49 AM
  3. Replies: 2
    Last Post: 02-15-2015, 11:36 AM
  4. Shared Modules/Macros?
    By atwy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-23-2014, 09:04 AM
  5. [SOLVED] Macros and Modules
    By VanniFucci in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-15-2013, 05:46 AM
  6. Replies: 6
    Last Post: 04-21-2011, 01:12 PM
  7. Managing Modules/Macros - More than one Module FOLDER?
    By Hari Prasadh in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-30-2005, 10:05 AM

Tags for this Thread

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