Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / February 2008

Tip: Looking for answers? Try searching our database.

Open worksheet by date

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sandy - 14 Feb 2008 18:18 GMT
I have a workbook which contains twelve worksheets - January,
February............., December.
I would like to have the active worksheet upon opening correspond to the
current month.
E.g. if the workbook is opened in March then the "March" worksheet displays.
How can I do this?

Sandy
Bernie Deitrick - 14 Feb 2008 19:24 GMT
Sandy,

Copy the code below and paste it into the Thisworkbook object's codemodule.

HTH,
Bernie
MS Excel MVP

Private Sub Workbook_Open()
On Error Resume Next
Worksheets(Format(Date, "mmmm")).Activate
End Sub

>I have a workbook which contains twelve worksheets - January, February............., December.
> I would like to have the active worksheet upon opening correspond to the current month.
> E.g. if the workbook is opened in March then the "March" worksheet displays. How can I do this?
>
> Sandy
Sandy - 14 Feb 2008 20:50 GMT
Perfect Bernie
Thank you very much.
Sandy

> Sandy,
>
[quoted text clipped - 18 lines]
>>
>> Sandy
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.