excel-training-course - excel code
Microsoft Office TrainingThe UK's Number 1 for Microsoft Office Training Sitemap add this page to your favourites/bookmarksBookmark page
 
view a printable version of this pagePrintable version
Plus One Google
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

resolvedResolved · Low Priority · Version Standard

replyReplyMon 28 Jan 2008, 11:22Delegate Robert said...

Excel code

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.

For upcoming training course dates see: Pricing & availability

replyReplyTue 12 Feb 2008, 12:49Trainer Katie said...

RE: Excel code

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

replyReplyThu 14 Feb 2008, 17:59Delegate Robert said...

RE: Excel code

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.

replyReplyMon 7 Apr 2008, 10:30Trainer Carlos said...

RE: Excel code

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


 

 

Excel tip:

COUNT function vs COUNTA function

The COUNTA function works in the same way as the COUNT function, except that it will count cells that contain text (labels) and also cells that contain numbers (values). The COUNT function will only count cells that contain numbers. Blank cells are not counted by either the COUNT or the COUNTA function.

View all Excel hints and tips

forum postIs it possiblke to link between seperate project plans

Ii.e a dependency reminder that is linked to a task on another project

» Forum post: Dependency Linking


Rate this page:
2.2/5 (213 votes cast)
Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses
Microsoft Certified Partner
Security Seal verified by visa, mastercard securecard

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

Management training

Professional Skills courses
Project Management Course London
Project Management Courses London
Project Management Training London
Project Management Training
Project Seminar
Project Seminars
Time Management Course London
Time Management London
Time Management Courses London
Time Management Training London
Introduction to Finance course
Assertiveness Skills course
Effective Communications Skills training
Presentation Skills London

Training Formats

Public scheduled courses
On-site training
Closed company courses

Consultancy
Application Development

Blogs

Excel Training
MS Project Training
Microsoft Training Blog

Version differences

Office 2010 vs 2007
MS Project version differences

Training Information

London Computer Training
Computer Training London
Docklands Training Courses
Docklands Training London

Training venues London
Client list
FAQ
Pricing and availability
Course details / Syllabus

Training Articles
Training Information

Microsoft training

Microsoft Office training
& IT Applications

Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training
MS Project courses
MS Project training
Outlook courses
PowerPoint courses
PowerPoint training
VBA courses
Word courses
Microsoft.training
(more...)

Excel Training

Excel courses
Excel Training Courses Medway
Autonumber in Excel
Microsoft Excel training
Basic Excel Courses
Basic Excel Course
Basic Excel Training

Interested in MS Access training?

Access courses
Microsoft Access training
Microsoft access courses
Microsoft training access course
Microsoft+access+training
Access courses in london

Training provider

Training providers
IT training companies
IT training providers
Management Training providers
Management Training provider

Event history, feedback results
Events in 2012 · 2011 · 2010 · More

See also

Crystal Reports training