Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Date Line
Hello,
I would like to create a formula that when I open the file it recognizes the date and moves the line to the appropriate date or week. I have see it done before but can't find any help |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Date Line
You could do this with a HYPERLINK function, where you would take the
current date from TODAY and turn it into an appropriate row number and jump to there. Give some details about how your sheet is laid out if you want more advice, i.e where are the dates or weeks you mention? Hope this helps. Pete "SophiaS" wrote in message ... Hello, I would like to create a formula that when I open the file it recognizes the date and moves the line to the appropriate date or week. I have see it done before but can't find any help |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Date Line
Lets say you have dates in A1 thru A366 ( 1/1/2008 thru 12/31/2008) in
Sheet1. In the workbook code area insert the following macro: Private Sub Workbook_Open() Sheets("Sheet1").Activate d = Date For i = 1 To 366 If d = Cells(i, "A").Value Then Cells(i, "A").Select Exit Sub End If Next End Sub When the workbook is opened, Sheet1 is Activated and column A is searched for a date that matches the current date. That cell is selected -- Gary''s Student - gsnu200770 "SophiaS" wrote: Hello, I would like to create a formula that when I open the file it recognizes the date and moves the line to the appropriate date or week. I have see it done before but can't find any help |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Create vertical line to indicate date on chart with series of date | Charts and Charting in Excel | |||
I need a date line | Charts and Charting in Excel | |||
Line Chart-EXACT End Date | Charts and Charting in Excel | |||
Adding a line after a date | Excel Discussion (Misc queries) | |||
Line chart - date line association gone mad! | Charts and Charting in Excel |