#1   Report Post  
Posted to microsoft.public.excel.misc
Obi-Wan Kenobi
 
Posts: n/a
Default User Form


Can anyone advise how I would activate a user form by pressing a button
on a work sheet?

I have created a simple user form but don’t know how to get it to open.
I’m quite new to macros. I can build simple macros but I am not to sure
how to do this.


--
Obi-Wan Kenobi
------------------------------------------------------------------------
Obi-Wan Kenobi's Profile: http://www.excelforum.com/member.php...o&userid=32578
View this thread: http://www.excelforum.com/showthread...hreadid=525807

  #2   Report Post  
Posted to microsoft.public.excel.misc
keithl816
 
Posts: n/a
Default User Form


Right click your command button, click on view code and place


Code:
--------------------
UserForm1.Show
--------------------


Between Private Sub CommandButton1_Click() and End Sub

Change your userform number to whatever number it is, same with the
command button number, also make sure to exit design mode.


--
keithl816
------------------------------------------------------------------------
keithl816's Profile: http://www.excelforum.com/member.php...o&userid=21287
View this thread: http://www.excelforum.com/showthread...hreadid=525807

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
user form question: text box to display result BigPig Excel Discussion (Misc queries) 0 February 28th 06 12:33 AM
user form question: text box to display result BigPig Excel Worksheet Functions 0 February 25th 06 08:17 PM
Example User Form Required robertguy Excel Discussion (Misc queries) 0 October 4th 05 02:25 PM
Print scrollable user form. cparsons Excel Discussion (Misc queries) 2 August 4th 05 04:45 PM
user form static69 Excel Discussion (Misc queries) 1 February 6th 05 08:43 PM


All times are GMT +1. The time now is 11:22 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"