PC Review


Reply
Thread Tools Rate Thread

Connecting userforms to buttons in Excel

 
 
Sören_Marodören
Guest
Posts: n/a
 
      14th Jan 2008
I want to define a button in Excel (close to the bold- and italic-buttons)
that opens a userform that I have done. (In this userform I can do some
settings before I press the OK-button to start the VBA-macro thats does the
work.)

I know how to connect a button to a VBA-macro, but not how to connect it to
a userform.

Best regards,
/Sören
 
Reply With Quote
 
 
 
 
Jim Cone
Guest
Posts: n/a
 
      14th Jan 2008

Create a macro to call the form and run the macro from your button...
'--
Sub ConnectToUserForm()
UserForm1.Show
End Sub
'--

Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)



"Sören_Marodören"
wrote in message
I want to define a button in Excel (close to the bold- and italic-buttons)
that opens a userform that I have done. (In this userform I can do some
settings before I press the OK-button to start the VBA-macro thats does the
work.)
I know how to connect a button to a VBA-macro, but not how to connect it to
a userform.
Best regards,
/Sören

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
UserForms: Clear all Option Buttons =?Utf-8?B?U2hhd24=?= Microsoft Excel Programming 2 19th May 2007 11:29 AM
Looking for sample of VCR or Navigation buttons for use on UserForms Phillips Microsoft Excel Programming 4 19th Jun 2006 01:14 PM
Radio Buttons in VBA UserForms =?Utf-8?B?bmlyMDIw?= Microsoft Excel Programming 5 15th Jun 2005 02:49 PM
Add toolbar buttons to userforms mcwhirt3@msu.edu Microsoft Excel Programming 0 23rd Feb 2005 05:46 PM
RollOver buttons in UserForms (A solution) Pierre Archambault Microsoft Excel Programming 2 9th Jul 2003 04:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:57 PM.