+ Reply to Thread
Results 1 to 2 of 2

Action Button Links

Hybrid View

  1. #1
    Registered User
    Join Date
    09-22-2009
    Location
    Los Angeles, United States
    MS-Off Ver
    Excel 2003
    Posts
    8

    Action Button Links

    Hi,

    I have several worksheets that I receive weekly that needs to be compiled into one workbook. These worksheets have the same template and vba coding, only the values are different. The problem I have is when I copy the worksheets together, my command buttons lose the link to the module in which the macros are located even though the same macros exist in the new workbook under the same name and module. Is there a way to structure my coding so that I won't have to relink my command buttons every time I move my worksheets to a new workbook? Thanks in advance for the help.

    Dan

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Action Button Links

    If you use ActiveX buttons from the Control Toolbox (rather than Forms buttons or AutoShapes), they always get processed by event handlers in the sheet code. From there, you can call macros anywhere in the workbook.

    If you copy the sheet, the buttons remain linked to the associated sheet module.
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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