Results 1 to 4 of 4

Thread: Use userform vba using Excel

  1. #1
    Join Date
    Jun 2009
    Posts
    441

    Use userform vba using Excel

    As everyone knows Excel is the King in the corporate world, I working on Excel for my office purpose. I want to create a userform and define it using VBA coding. Can I do so? If yes, then how to create a userform using Excel VBA coding?

  2. #2
    Join Date
    May 2008
    Posts
    271

    Re: Use userform vba using Excel

    The syntax that is used to display a UserForm programmatically:

    Code:
    UserFormName.Show
    You can load a UserForm into memory without actually displaying it. It may take a complex UserForm several seconds to appear. Because you can preload a UserForm into memory, you can decide when to incur this overhead. To load UserForm into memory without displaying it, use:

    Code:
    Load UserForm
    To remove a UserForm from memory, use the Unload statement.

    Code:
    Unload UserForm

  3. #3
    Join Date
    Nov 2008
    Posts
    1,221

    Re: Use userform vba using Excel

    To create a new UserForm

    1. Open the Excel workbook and go to VBA (ALT + F11).
    2. Under VBA, click the "Insert UserForm" button.
    3. Click Toolbox button.
    4. Use controls on the form by clicking the appropriate button on the toolbox.
    5. To edit the properties of a control, use the Properties window.
    6. To remove a control, select and press the Delete button.

  4. #4
    Join Date
    May 2008
    Posts
    945

    Re: Use userform vba using Excel

    In Excel you can use lots of ActiveX controls in a UserForm:
    • Label control
    • TextBox control
    • CommandButton control
    • ListBox control
    • ComboBox control
    • Frame control
    • OptionButton control
    • CheckBox control
    • ToggleButton control
    • TabStrip control
    • MultiPage control
    • ScrollBar control
    • SpinButton control
    • RefEdit control
    • Image control


    A complete list of all the properties and methods for a specific command is available in the Object Browser. To find this information in Excel, follow these steps:
    1. On the Tools menu, point to Macro, and then click Visual Basic Editor.
    2. On the View menu, click Object Browser.
    3. In the Search Text box, type the name of the control that you want, and then click Search.

Similar Threads

  1. crystal reports connection to excel vba userform
    By shankar.nstl in forum Software Development
    Replies: 1
    Last Post: 01-10-2011, 03:44 PM
  2. Replies: 2
    Last Post: 20-08-2010, 01:23 AM
  3. Excel VBA Code For Minimizing UserForm
    By warehouse peon in forum Software Development
    Replies: 4
    Last Post: 25-01-2010, 08:45 PM
  4. How to display an image in a Userform on setting the path
    By ANSEL in forum Software Development
    Replies: 3
    Last Post: 26-10-2009, 11:46 PM
  5. Resize userform Window
    By Clemens in forum Software Development
    Replies: 2
    Last Post: 16-04-2009, 07:55 PM

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
  •  
Page generated in 1,713,579,883.85473 seconds with 16 queries