+ Reply to Thread
Results 1 to 3 of 3

viewing the code and identifying the sub routine

  1. #1
    Registered User
    Join Date
    12-05-2014
    Location
    UK
    MS-Off Ver
    2010
    Posts
    42

    viewing the code and identifying the sub routine

    Hi

    I am a VBA novice and have been given an excel workbook with a front end that has a lot of buttons that have VBa behind them. I want to edit something minor for one of the buttons but I need to firstly know what to edit -

    Once I view the code, how would I go about identifying which Sub routine that particular button relates to within the code module? The sub names dont give it away and there are no comments in the code

    Thanks in advance !
    Last edited by Kencosgrove; 12-05-2014 at 11:26 AM. Reason: give more info

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: viewing the code and identifying the sub routine

    Right click the button and then click on 'Assign Macro'. The associated macro will appear in the box at the top.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    12-05-2014
    Location
    UK
    MS-Off Ver
    2010
    Posts
    42

    Re: viewing the code and identifying the sub routine

    Hi, It seems the be the case for some of the buttons, but not the ones I want to edit! they seem to have different hyperlinks there that are nowhere to be found in the code

    thanks for the quick response

+ 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. Stop from Viewing Workbook Code
    By jerryjaysr in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-24-2007, 08:36 PM
  2. Excel crashes when I create code through a routine
    By Caligula in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-20-2007, 03:55 PM
  3. Question about creating code through a routine
    By Caligula83 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-24-2007, 07:08 PM
  4. VBA code - color format routine
    By xlwho in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-06-2006, 05:10 AM
  5. VBA code for InputBox vbCancel to run the routine
    By Glenn P in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-21-2005, 06:24 PM

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