Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

visual basic

ResolvedVersion 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:

Fill formulae across a sheet

To copy a formula down a spreadsheet where there is data underneath, to the left or to the right of the formula, double-click on the fill handle. The fill handle is the little black cross that appears in the bottom right-hand corner of the formula cell. Unfortunately, no similar facility exists to copy formulae across the sheet.

One reasonably quick way to copy an existing formula across a sheet is to select the formula and the cells on the right to which you want to copy it. Then press Ctrl+R to copy the formula across the selected range, or, if you are menu-minded, use the Edit|Fill|Right command.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.