LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Open to today's date

This Workbook_Open event code should do what you want...

Private Sub Workbook_Open()
Dim SH As Worksheet
For Each SH In Worksheets
If "WE " & Format(Now + 6 - Weekday(Now) - _
7 * (Weekday(Now) = 7), "m-d") = SH.Name Then
SH.Select
Exit For
End If
Next
End Sub

Rick


"KathyN" wrote in message
...
You are right - it's a dash, 5-9

"Rick Rothstein (MVP - VB)" wrote:

How are you getting the forward slash into the worksheet's name (as far
as I
know, it is an invalid character for use there)?

Rick


"KathyN" wrote in message
...
Rick,

The worksheets are named 'WE m/d' corresponding to each Friday, i.e. WE
5/9.
The dates are in cells B3:G3 in each sheet, and are formatted m/dd/yyy.

Thanks

"Rick Rothstein (MVP - VB)" wrote:

How are the worksheets named? Which "same row" are the dates in? Which
cells? The more information you give us about your set up, the better
able
we are to figure out what to tell you; otherwise, we are reduced to
pure
guessing and those guesses usually turn out to be wrong.

Rick


"KathyN" wrote in message
...
Hello

I have a workbook with a sheet for each week of the year. The dates
are
in
the same row in each sheet. I would like to be able to have the
workbook
open to the sheet that contains today's date.

Thanks for your help!





 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
conditional formatting for cell date to equal today's date Sistereinstein Excel Worksheet Functions 2 September 10th 12 07:53 PM
date in Cell to change colors if the date is beyond today's date Pete Elbert Excel Discussion (Misc queries) 2 June 6th 09 06:31 AM
How to use Today's date in a cell and make it stay the same date ADSK Excel Discussion (Misc queries) 6 November 17th 08 07:34 PM
Open file saved as today's date Lift Off[_8_] Excel Programming 11 May 14th 04 02:05 PM
on open goto cell with today's date Tom Ogilvy Excel Programming 1 September 14th 03 10:56 PM


All times are GMT +1. The time now is 08:05 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"