LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 61
Default macro command button click

I have a macro that opens a userform. I want the macro to open userform 5
then upon opening userform 5 I want command button 3 to be activated. I have
made command button 3 public withing the code for userform 5. When the macro
is activated, the userform dispalys ok but the command button has not been
activated. I thought this might be a simple one but may be I was wrong.

Private Sub CommandButton1_Click()
UserForm5.Show
UserForm5.CommandButton3_Click
Unload Me
End Sub
 
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
macro command button click Harald Staff[_2_] Excel Programming 0 April 16th 09 10:21 PM
macro command button click Per Jessen Excel Programming 0 April 16th 09 09:50 PM
Assign Macro to Command button by right click SANDIND Excel Programming 3 June 1st 08 02:09 PM
How to add a command button and on-click within vba Papa Jonah Excel Programming 9 December 2nd 04 12:10 AM
How do I set a macro to run when I click a Command Button in Exce. thewizrd Excel Programming 1 October 8th 04 06:44 PM


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

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

About Us

"It's about Microsoft Excel"