Results 1 to 3 of 3

Thread: Macro to Run from Command Button

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2005
    Posts
    4

    Question Macro to Run from Command Button

    I have a macro (module) made in excel, I have also created a VB Project as I want a GUI to get certain variables from input that can be passed to the macro. Giving it more functionality as the msgbox available wont suffice. Basically i have some Check box values, and two dates to pass to the macro (module), then execute the macro by clicking a command button. How would i go about this?

  2. #2
    Junior Member
    Join Date
    Sep 2005
    Posts
    24

    Re: Macro to Run from Command Button

    Hi
    Is it possible to convert your VB Project to an ActiveX Control or a Librariy?
    where you can use as a Reference in your Excel VBA ?

    Chris

  3. #3
    Frenzied Member zaza's Avatar
    Join Date
    Apr 2001
    Location
    Borneo Rainforest Habits: Scratching
    Posts
    1,486

    Re: Macro to Run from Command Button

    Alternatively, create a Userform in VBA and put the code in there (which may be some work, depending on how much code you have). Then you can run the entire thing through Excel.

    zaza

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width