commandbutton click

  1. N

    programmatically add commandbutton's code during runtime

    Hi everybody, Briefly, What i'm trying to do is a program that creates a userform for each customer I have in a database with all the products they ordered, the details of them and a commandbutton that will work as a check. The userform helps me enlisting the orders. As every customer order...
  2. B

    Runtime Error 424: Object Required - help with starting User Form

    Every time I try to run this application that I created, I am getting this error. I am VERY new to VBA (as in...I began using it yesterday) so I really don't have any idea what I'm doing. I copied a basic format that I found online and tailored it to my needs. I am trying to start a userform...
  3. Prevost

    Error when userform textbox value is empty

    Hi, I have a userform with 2 textboxes that a user can enter values in. When I step through the code, WOQty is "0" and WONo is "" even when the textboxes have values entered into them. I declared 'Public WOQty as Integer' and 'Public WONo as String' in my UserForm and then tried in a Module and...
  4. S

    Display Command Button Caption in VBA

    Hello Forum Members, Can you please advise me how to modify the below code in order to briefly display the button caption when hovering over it with the mouse cursor. Thanks in advance for your assistance. Private Sub CommandButton5_Click() Header_Insert End Sub Best Regards, Simone
  5. N

    Print cell contents using VBA

    Hi All I am trying to make a seat booking form for a school, who currently hand write all the tickets sold. I have in say A1 a list box showing the price of the ticket bought In B1 I have a space to put the name of the person buying the ticket and In C1 I wanted to put in a commandbutton that...
  6. O

    What's the code for 'if commandbutton1 is clicked?

    Hi All, I has an exit event in a textbox on a userform that sets focus on a combobox. I have a 'Exit' button on the userform as well. I simply need to say in the textbox exit event to setfocus on the combobox, unless the exit button is pressed. Something like private sub textbox1.exit...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top