Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 107
Default push a command button

Is there any way (code) to push a UserForm CommandButton programatically?
--
donwb
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default push a command button

Call Commandbutton1_Click

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"donbowyer" wrote in message
...
Is there any way (code) to push a UserForm CommandButton programatically?
--
donwb



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default push a command button

If you are calling the command button from somewhere other than the form you
will need to reverence the form explicitly something like this...

Call userform1.Commandbutton1_Click

Additionally you will need to change the scope fo the button kinda like
this...

Public sub Commandbutton1_Click()
instead of
Private Sub Commandbutton1_Click()
--
HTH...

Jim Thomlinson


"Bob Phillips" wrote:

Call Commandbutton1_Click

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"donbowyer" wrote in message
...
Is there any way (code) to push a UserForm CommandButton programatically?
--
donwb




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 107
Default push a command button

Thanks to all who replied. Calling CommandButton_Click worked fine
--
donwb


"Jim Thomlinson" wrote:

If you are calling the command button from somewhere other than the form you
will need to reverence the form explicitly something like this...

Call userform1.Commandbutton1_Click

Additionally you will need to change the scope fo the button kinda like
this...

Public sub Commandbutton1_Click()
instead of
Private Sub Commandbutton1_Click()
--
HTH...

Jim Thomlinson


"Bob Phillips" wrote:

Call Commandbutton1_Click

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"donbowyer" wrote in message
...
Is there any way (code) to push a UserForm CommandButton programatically?
--
donwb




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Push button and input box? tripflex Excel Discussion (Misc queries) 2 March 6th 09 03:36 PM
Time with the push of one button Dale G[_2_] New Users to Excel 7 August 6th 08 01:55 PM
Push the button chris Excel Programming 1 August 3rd 05 04:07 PM
Which button did I push Daniel Bonallack[_2_] Excel Programming 4 May 20th 04 09:12 PM
Searching in a row with push on a button Christian R. Excel Programming 0 January 21st 04 07:16 PM


All times are GMT +1. The time now is 09:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"