+ Reply to Thread
Results 1 to 3 of 3

How to assign the form in the command button.

  1. #1
    Registered User
    Join Date
    08-04-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    41

    How to assign the form in the command button.

    Hello everyone!!!!

    How r u? Hope you all are doing well.

    I need your help. I have created the form using the vba i.e. UserForm1.

    And I have kept one Run command button on the excel sheet.

    So when the user click on this command button the Userform should run.

    Can anyone help me the coding for the command button? How can I make this?

    Please help me.

    Thanks a lot.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: How to assign the form in the command button.

    Hi somani,

    Find the attached with the most basic VBA I can create to do what I think you want.

    You need some VBA command that does a "Userform1.Show". I've added a Userform1 to the workbook and created a Button that when clicked calls the VBA Module code to Show the Userform. See the attached.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    08-04-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    41

    Re: How to assign the form in the command button.

    It works fine.

    Thanks a lot.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] (updating inventory using user form) : Assign macro to "Çheck Availibility" command button
    By pyol17 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-08-2012, 06:50 AM
  2. Command Button - Assign Macro
    By jacknjob in forum Excel General
    Replies: 1
    Last Post: 09-09-2007, 04:00 AM
  3. Assign MAcro to command button
    By T De Villiers in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-04-2006, 02:38 PM
  4. [SOLVED] How to assign a marco to a command button
    By Eric in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-29-2005, 08:05 PM

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