Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 122
Default Always open a certain worksheet if date is past?

Is there a macro or something that will open a specific sheet if a
date is past due? For example, if the date in cell C1 on sheet 1 is
older than today, can the excel workbook always open to sheet 7 from
that point forward?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Always open a certain worksheet if date is past?

Private Sub Workbook_Open()
If Sheets("Sheet1").Range("C1").Value < Date Then
Sheets("Sheet7").Activate
End If
End Sub

Place into Thisworkbook module.


Gord Dibben MS Excel MVP


On Tue, 24 Jul 2007 13:29:42 -0000, wx4usa wrote:

Is there a macro or something that will open a specific sheet if a
date is past due? For example, if the date in cell C1 on sheet 1 is
older than today, can the excel workbook always open to sheet 7 from
that point forward?


Reply
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
Copy and past from one worksheet to another Rick_T Excel Discussion (Misc queries) 3 December 29th 06 02:31 PM
Protect Worksheet from Copy Past Trying Hard Excel Discussion (Misc queries) 3 February 11th 06 07:13 PM
When I open my past invoice it keeps changing date to todays date Stop date changing to todays in Excel Excel Worksheet Functions 2 October 7th 05 04:54 PM
need to show when date is past due rsdunphy Excel Worksheet Functions 5 September 28th 05 07:41 PM
Date/If function for past dues workin4alivin Excel Worksheet Functions 7 August 14th 05 04:14 AM


All times are GMT +1. The time now is 03:35 PM.

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

About Us

"It's about Microsoft Excel"