Consulting

Results 1 to 11 of 11

Thread: how to distribut a form project?

  1. #1
    VBAX Regular
    Joined
    Jun 2007
    Posts
    27
    Location

    how to distribut a form project?

    I developed a excel VBA form project. Can someone recommed a way for me to publish it for others to use?
    Thanks

  2. #2
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    zip it up and email it to them...??
    What is the question? Is all the code in a workbook?
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  3. #3
    VBAX Regular
    Joined
    Jun 2007
    Posts
    27
    Location
    Thank for your response, I want a way to make the form preject part of excel. Now, if a user want to use it, he has to open VB editor and compile the project the run it. Is there a way to add a memu item to excel so user only need to click the item to run the project?
    Thanks.
    Jeff

  4. #4
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    You can add a button to the sheet from the forms toolbar and then right click on it to assign a macro to run.

    You can also run your macros by hitting alt+F8 and select the macro. I suspect the problem is you have built a userform and need to show it so you need to insert a module and add code similar to this:
    [VBA]Sub showform()
    userform1.Show
    End Sub
    [/VBA]
    assign your button or menu to this macro and it will show your userform....note userform1 has to be the name of your userform or you will have to change that in the code to refect the actual name of your userform.

    Alt method of adding a menu but might be a little advanced for you right now but take a look it might be just what your looking for.
    http://vbaexpress.com/kb/getarticle.php?kb_id=921
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  5. #5
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    he has to open VB editor and compile the project the run it.
    The reason I believe is that you have built a userform and you need to add a standard module to the project with the snippet of code I posted above to call your userform....if you would post your workbook it would be much easier to guide you through this simple process....
    hit post reply at the bottom left of the last post....post your message and before you hit submit..scroll down and look for manage attachments.
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  6. #6
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    example attached....see image in excel file for location of standard module and code to call the userform.
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  7. #7
    VBAX Regular
    Joined
    Jun 2007
    Posts
    27
    Location
    Thank you very much.
    How to add a button to a sheet?

  8. #8
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    right click on any menu bar and make sure the forms toolbar has a check next to it.....once the forms toolbar is open just click on the one that says button and then draw your button on the sheet. Right click to assign a macro.
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  9. #9
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    You can also open the forms toolbar by going to view-toolbars-forms
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  10. #10
    VBAX Regular
    Joined
    Jun 2007
    Posts
    27
    Location
    Thank you so much,
    Lucas!

  11. #11
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    Your welcome Jeff, Be sure to mark your thread solved usng the thread tools at the top of the page...you can post followup questions even if it's been marked solved.
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

Posting Permissions

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