#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 84
Default userform?

When you click on tools then options, is that a userform?
how do you go about creating user forms? is there a menu option, or is it
all in VBA? if its in VBA, could somebody please give me a simple code so
that i can play around with it.

Thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default userform?

Yes, basically speaking a user form is a 'Window' or appliction interface.
Practically every Windows application, including Excel itself, runs on Forms
with code behind it.

Forms in Excel can be created in the VBA-editor. Use Alt+F11 to enter the
editor.

Once in the editor, by default you can add a user form using the second icon
in the toolbar of the editor. Once a form is added, doubleclick on it to
enter the "code view" where you can type VBA-code. Example:

Private Sub UserForm_Activate()
MsgBox ("Hello world")
End Sub

Do this and press [F5] to run the appropriate Sub.

Look for more info on "Excel VBA code" using Google. Have fun!!

"choice" schreef in bericht
...
When you click on tools then options, is that a userform?
how do you go about creating user forms? is there a menu option, or is it
all in VBA? if its in VBA, could somebody please give me a simple code so
that i can play around with it.

Thanks in advance



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default userform?

No, it's a built-in dialog. UserForms are used to create custom dialogs. You
have to write your own code to provide functionality to the UserForm.

Perhaps you should first look at Dave McRitchie's site to learn a bit about
macros and VBA (although UserForms are not specifically addressed).

http://www.mvps.org/dmcritchie/excel/getstarted.htm

But basically, you add a UserForm to your VBA project, add controls to it so
that the user can interact with it, and write code to handle the user's
input.

--

Vasant






"choice" wrote in message
...
When you click on tools then options, is that a userform?
how do you go about creating user forms? is there a menu option, or is it
all in VBA? if its in VBA, could somebody please give me a simple code so
that i can play around with it.

Thanks in advance



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
Looping procedure calls userform; how to exit loop (via userform button)? KR Excel Programming 6 July 27th 05 12:57 PM
Activating userform and filling it with data form row where userform is activate Marthijn Beusekom via OfficeKB.com[_2_] Excel Programming 3 May 6th 05 05:44 PM
Access from add_in userform to main template userform.... Ajit Excel Programming 1 November 18th 04 05:15 PM
Linking userform to userform in Excel 2003 missmelis01 Excel Programming 2 August 27th 04 08:07 PM
Userform inside another userform Ryan Excel Programming 0 April 23rd 04 08:01 PM


All times are GMT +1. The time now is 08:33 AM.

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"