excel-training-course - excel code
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 » excel-training-course - Excel code

excel-training-course - Excel code

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

resolvedResolved · Low Priority · Version Standard

Excel code

Robert has attended:
Excel VBA course

by - delegate Robert [2 posts] (2008 Jan 28 Mon, 11:22) replyReply

What formula would I use to hide multiple objects more than ten), on a worksheet using a command button or an option button, and make them re-appear immediately instead of cascading.

Excel Intermediate 1 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2003 2008 Sep 9 Tue Bloomsbury 2 book now £215 £215
2002/XP 2008 Sep 9 Tue Tooting 0 FULL    
2003 2008 Sep 11 Thu Southwark 4 book now £207 £215
2002/XP 2008 Sep 16 Tue Tooting 0 FULL    
2003 2008 Sep 16 Tue Bayswater 4 book now £195 £205
2003 2008 Sep 18 Thu Bloomsbury 2 book now £215 £215
Full Schedule: See all 137 Excel Intermediate course dates.
Bookings currently available until 25th November 2009.

RE: Excel code

by - trainer Katie gold contributer[208 posts] (2008 Feb 12 Tue, 12:49) replyReply

Hi Robert,

Thanks for your question. But could you elaborate a bit further? There is no Excel function/formula for hiding objects.

Can you tell me what are you trying to create, e.g. a userform?

Regards,

Katie Woo
Microsoft Certified Trainer

RE: Excel code

by - delegate Robert [2 posts] (2008 Feb 14 Thu, 17:59) replyReply

Katie,


What I am trying to do is create a worksheet with multiple objects on it. When the worksheet is activated only selected buttons are visible and enabled or bisible and unabled. When a command button is selected other command buttons and option buttons become enabled and visible. What I need is for theses objects to appear all at once and when a second command button is selected the original objects return to their original state of not being visible or enabled.

I have created an Array statement which appears to work but still involves a lot of code.

RE: Excel code

by - trainer Carlos gold contributer[413 posts] (2008 Apr 7 Mon, 10:30) replyReply

Hi Robet

On the Worlsheets Activate Event you make the required buttons or other objects visible and all other buttons invisible. eg:

Private Sub Worksheet_Activate()

cmdButton1.Visible = True
cmdButton2.Visible = True

cmdButton3.Visible = False

optOption1.Visible = True
optOption2.Visible = False

End Sub


The above open the worksheet and shows only buttons 1 and 2.

The code below makes the second Opotion box visible andhides the secons button:

Private Sub optOption1_Click()

cmdButton1.Visible = True
cmdButton2.Visible = False

cmdButton3.Visible = False

optOption1.Visible = True
optOption2.Visible = True

End Sub


Hope this helps

Carlos



Related articles

· Advanced level training: Microsoft Excel and the Web
· Microsoft Excel Cheat Sheet: Tips and Shortcuts
· A Beginners Guide To Formulas In Excel
· Prepare for your MOS Certification with MS Excel Courses
· How to check for and reduce errors in Microsoft Excel

Excel tip:

Change the Print button so it brings up the Print dialogue box

If you want to bring up the Print dialogue box to check your print settings when you hit the Print button, do the following:

1. Right-click on the toolbar that displays the Print button.

2. Select Customise.

3. Click on the Print button on the toolbar to select it, then hold the left mouse button down and drag the button towards the screen below. The button should come off the toolbar.

4. In the Customise dialogue box on your screen, select the Commands tab.

5. Select File from the Categories list, and then locate the Print... icon (looks like the normal Print button, but the word Print has three dots following it).

6. Click on the Print... icon to select it, then use your left mouse to drag and drop the icon onto the toolbar at the top of the screen.

7. Close the Customise dialogue box.

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