Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Getting started with a User Form


Help!

I want to do something that looks incredibly simple compared to the
many complex queries answered on this great website, but just don't
know where to get started.

I want a dialog box with help information to come up when a help button
is pressed, and for this box to disappear when the user clicks on
'OK'.

I have created the user form itself but have spent hours trying to find
out how I can get the box just to appear on this click and disappear
when OK is clicked. Please can anyone help me??

Also, I've created a button and entered the text 'OK' on it, but my
searches for help suggest that there is an actual 'OK' button that I
can add......is there?

I hope this is all clear, and thnks in advance for any help you can
offer to this newbie!


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Getting started with a User Form

Hi,
If I understand you correctly the following should
work:

Go to the VBA editor and add a code module to your
project and make a new sub:

Sub DisplayHelp() 'Or whatever you want to call your Sub

HelpForm.Show 'Substitute HelpForm with your form name

End Sub

On the form you have made dbl click on the button you've
labelled OK. You'll then get up a code window with the
first line something like

Private Sub Commandbutton1_Click

depending on the name of your commandbutton. Enter the
following code so it looks like this:

Private Sub Commandbutton1_Click

Unload Me

End Sub

Finally for the button you have on the sheet to display
your form you need to assign the Sub DisplayHelp.

jacob
-----Original Message-----

Help!

I want to do something that looks incredibly simple

compared to the
many complex queries answered on this great website, but

just don't
know where to get started.

I want a dialog box with help information to come up

when a help button
is pressed, and for this box to disappear when the user

clicks on
'OK'.

I have created the user form itself but have spent hours

trying to find
out how I can get the box just to appear on this click

and disappear
when OK is clicked. Please can anyone help me??

Also, I've created a button and entered the text 'OK' on

it, but my
searches for help suggest that there is an actual 'OK'

button that I
can add......is there?

I hope this is all clear, and thnks in advance for any

help you can
offer to this newbie!


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from

http://www.ExcelForum.com/

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Getting started with a User Form


Jacob,

Don't know how to contact you directly, but just wanted to say thank
you very much for your time and help. It all works perfectly, and your
help is much appreciated!.


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/

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 Forms - Tips needed to get started Stee n Excel Discussion (Misc queries) 3 June 28th 08 10:38 PM
User Forms - Tip needed to get started Stee n Excel Discussion (Misc queries) 0 June 28th 08 08:26 PM
How do I fill a cell in a user form from a selection on same form? Terry Tipsy Excel Discussion (Misc queries) 4 June 11th 07 02:59 PM
User Form Pete Wright Excel Programming 1 November 3rd 03 09:24 PM
I am looking to see if anybody has an equivalant user form to Outlooks CONTACT form BruceJ[_2_] Excel Programming 2 October 15th 03 05:28 PM


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