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

open event

ResolvedVersion 2007

Aquila has attended:
Excel VBA Intro Intermediate course

Open event

Hi.

I want my workbook to be on a specified sheet when it is opened. How would I go about doing this? Would it be in my macro codes, or is there a excel setting for this?

Thanks

RE: Open event

Hi Aquila

Thanks for the question

In the project explorer select the "ThisWorkbook" object.

Select the Workbook object (from the left hand combo above the code window). This will automatically create an on open event.

Then write the code to select the worksheet, e.g

sheets(2).select

Hope this helps

Regards

Stephen

Wed 24 Mar 2010: 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.

Access tip:

Prefixed Autonumbering

When using Date Type = Autonumber as a primary key, clients may require autonumbering to be prefixed with a letter.

For example, P001, where P is the prefixed letter

Instructions
Step 1. Create Field Name
Step 2. Set Data Type to Autonumber
Step 3. Within Field Property General tabsheet,
enter Format property as [backslash]P000



View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.