visual basic

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Visual Basic

Visual Basic

resolvedResolved · Low Priority · Version 2003

Daren has attended:
Excel VBA Intro Intermediate course

Visual Basic

I have used a Excel sheet that when opened put's a drop down menu automatically on the Task Bar.
How is this don.

RE: Visual Basic

Hi Daren

Sorry for the delay.

I'm not sure what you mean about the drop down menu. Does it appear next to the other menu options or is it a command bar.

The way you make a command bar or any other item appear when a particular worksheet opens is

1. In the code window create the Workbook's Open event as shown below:

Private Sub Workbook_Open()

Application.CommandBars("TheCommandBarName").Visible = True

End Sub

To hide the command bar do the same in the close event.

Hope this helps

Carlos

Sun 3 May 2009: Automatically marked as resolved.

 

Training courses

 

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Excel tip:

Paste with Live Preview in Excel 2010

Did you know you can preview what you are about to paste? Here's how to do it.

Copy what you are about to paste
Position the cursor where you want to paste
Right click to display the shortcut menu
Place the cursor over the Paste Options and this will give you a preview of the what you are about to paste.

View all Excel hints and tips


Server loaded in 0.05 secs.