+ Reply to Thread
Results 1 to 2 of 2

Trying to run macro based on checkbox selection

  1. #1
    Forum Contributor
    Join Date
    08-03-2005
    Posts
    269

    Trying to run macro based on checkbox selection

    Hi, the following code is in "ThisWorkbook"

    Please Login or Register  to view this content.
    The code at the very top that says
    Please Login or Register  to view this content.
    is really part of the bottom half of the code reprinted below
    Please Login or Register  to view this content.
    The top half works fine. The Top and Bottom are completely seperate code that have nothing to do with each other. I want the bottom half only to function if checkbox1 is checked. This check box is on a sheet called "Checklist" I just can't figure out how do do this, can anyone help?
    Last edited by caliskier; 01-23-2008 at 02:03 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello caliskier,

    You need to isolate the macro in a Standard VBA module so that it is available to the entire project. It would help to have a better description of what you want to achieve. It isn't clear why you have all this code in the ThisWorkbook events.

    Once you have the macro in the Standard module you can attach it to a Forms check box, or call it from the Click event of a Control Toolbox check box.

    Sincerely,
    Leith Ross

+ 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