Results 1 to 2 of 2
  1. #1
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664

    Modifying VBA code in MS Excel 2010


    Okay, I forgot how to do this. I want to see the VBA code behind a button on an Excel spreadsheet that I am working on. How do I do that?
    I also anticipate making some changes in the VBA code. So after that how do I compile the code in Excel to accept the changes?

    Any help appreciated.

    Thanks in advance.

    Respectfully,

    Lou Reed

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    1. Make sure Developer tab is available

    2. Open the Excel VBA editor

    3. Go to the procedure

    4. Edit code

    5. Debug > Compile

    6. Save workbook

    If you need to edit the button itself (name, size, move, caption, etc):

    1. make sure worksheet is not protected

    2. click 'Design Mode' on the ribbon

    3. select button and edit properties (right click on the button is one way to open Properties box)
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 5
    Last Post: 12-09-2014, 02:38 PM
  2. Replies: 9
    Last Post: 10-15-2014, 12:09 PM
  3. Replies: 6
    Last Post: 01-24-2013, 03:15 PM
  4. Replies: 0
    Last Post: 11-29-2010, 11:42 AM
  5. Replies: 1
    Last Post: 03-24-2010, 02:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums