advanced excel courses - userforms
Microsoft Office Training verified by visa - mastercard securecode about microsoft training company london ukadd this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and Help » advanced excel courses - Userforms

advanced excel courses - Userforms

The UK's most regular instructor-led training courses.
Training information: advanced excel courses · Excel in courses · VBA courses London UK

resolvedResolved · Low Priority · Version Standard

Userforms

Jennifer has attended:
Excel VBA course

by - delegate Jennifer [2 posts] (2007 Nov 6 Tue, 09:32) replyReply

I am trying to set up a macro with user input, where they can choose one of several options (countries), each country chosen is then used as a variable in the macro (ie. country1, country2 etc). I have set up a checklist on a userform, but I'm not sure how to transfer the checked options to the main macro from the form.

Excel Advanced 1 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2003 2008 Sep 3 Wed Bloomsbury 3 book now £224 £235
2003 2008 Sep 5 Fri Bayswater 4 book now £195 £205
2002/XP 2008 Sep 10 Wed Tooting 0 FULL    
2003 2008 Sep 10 Wed Bloomsbury 5 book now £219 £235
2003 2008 Sep 12 Fri Southwark 6 book now £214 £230
2003 2008 Sep 17 Wed Southwark 7 book now £203 £230
Full Schedule: See all 126 Excel Advanced course dates.
Bookings currently available until 24th November 2009.

RE: userforms

by - trainer Carlos gold contributer[394 posts] (2007 Nov 26 Mon, 13:14) Edited on 2007 Nov 26 Mon, 13:16 replyReply

Hi Jeniffer

The simplest way to do it is to create Public variables in the macro to receive the values from the form.

You could create the variables as an Array eg.

Public Country(5) as Variant .

This will hold 6 values. Now when the countries are selected in the form their names are place in the Array.

Attached is an excel sheet that shows some check boxes that when clicked will add a country name to the array.

Hope it helps

Carlos

Attached files...

Use Country Form.xls


Related articles

· Do You Really Need Excel VBA Training?
· Microsoft Excel's Best Kept Secret
· Microsoft Excel Features and Functions for Accountants
· How to Create Better Excel Spreadsheets: Part One
· A Beginners Guide To Formulas In Excel

Excel tip:

Selecting your working range

In excel if you have an area you want to highlight, press Ctrl + * or Ctrl+Shift+8 (to get the *). This will select your working range.

View all Excel hints and tips

Institute of IT Training - Accredited Training Provider Microsoft Certified Partner
microsoft office
Microsoft Office Specialist Authorised Testing Centre (MOS and MCAS)

Prodigy Platinum Learning Partner

Institute of IT Training - Accredited Training Provider Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Microsoft Office training
Pricing and availability
Training schedule
Training venues

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
microsoft access courses · microsoft training access course
microsoft+access+training · access courses in london

Training Information
AddThis Social Bookmark Button What's this?
Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo Add to Diigo Add to Mr. Wong Add to Linkarena Add to Power Oldie Add to Folkd Add to Jumptags Add to Upchuckr Add to Simpy Add to StumbleUpon Add to Slashdot Add to Netscape Add to Furl Add to Spurl Add to Blinklist Add to Blogmarks Add to Technorati Add to Newsvine Add to Blinkbits Add to Ma.Gnolia Add to Smarking Add to Netvouz