Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have a schedule made in excel for my employees for each day from now until
2010. When the employees look at the schedule they have to scroll down until they find todays date. My question is, when they open excel, can todays date automatically be on the top row or can the past dates be deleted automatically? |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Take a look Advanced Filter
"delete automatically" wrote: I have a schedule made in excel for my employees for each day from now until 2010. When the employees look at the schedule they have to scroll down until they find todays date. My question is, when they open excel, can todays date automatically be on the top row or can the past dates be deleted automatically? |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I looked at advance filter but not sure what to do with it
"Teethless mama" wrote: Take a look Advanced Filter "delete automatically" wrote: I have a schedule made in excel for my employees for each day from now until 2010. When the employees look at the schedule they have to scroll down until they find todays date. My question is, when they open excel, can todays date automatically be on the top row or can the past dates be deleted automatically? |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Here is one way,
Private Sub Workbook_Open() 'will go to todays date on open, dates in column A, 'of sheet named sheet1 On Error Resume Next Sheets("Sheet1").Select ThisDay = DateValue(Date) Range("A1").Select i = 0 Do While ActiveCell.Offset(i, 0).Value < ThisDay i = i + 1 Loop Application.Goto Reference:=ActiveCell.Offset(i, 0), _ scroll:=True End Sub To put in this macro, from your workbook right-click the workbook's icon and pick View Code. This icon is at the top-left of the spreadsheet this will open the VBA editor to the thisworkbook module, then, paste the code in the window that opens on the right hand side, press Alt and Q to close this window and go back to your workbook, now this will run every time you open the workbook. If you are using excel 2000 or newer you may have to change the macro security settings to get the macro to run. To change the security settings go to tools, macro, security, security level and set it to medium -- Paul B Always backup your data before trying something new Please post any response to the newsgroups so others can benefit from it Feedback on answers is always appreciated! Using Excel 2002 & 2003 "delete automatically" wrote in message ... I looked at advance filter but not sure what to do with it "Teethless mama" wrote: Take a look Advanced Filter "delete automatically" wrote: I have a schedule made in excel for my employees for each day from now until 2010. When the employees look at the schedule they have to scroll down until they find todays date. My question is, when they open excel, can todays date automatically be on the top row or can the past dates be deleted automatically? |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Paul,
This is exactly was I was looking to do. Your a genius, thanks a milliion "Paul B" wrote: Here is one way, Private Sub Workbook_Open() 'will go to todays date on open, dates in column A, 'of sheet named sheet1 On Error Resume Next Sheets("Sheet1").Select ThisDay = DateValue(Date) Range("A1").Select i = 0 Do While ActiveCell.Offset(i, 0).Value < ThisDay i = i + 1 Loop Application.Goto Reference:=ActiveCell.Offset(i, 0), _ scroll:=True End Sub To put in this macro, from your workbook right-click the workbook's icon and pick View Code. This icon is at the top-left of the spreadsheet this will open the VBA editor to the thisworkbook module, then, paste the code in the window that opens on the right hand side, press Alt and Q to close this window and go back to your workbook, now this will run every time you open the workbook. If you are using excel 2000 or newer you may have to change the macro security settings to get the macro to run. To change the security settings go to tools, macro, security, security level and set it to medium -- Paul B Always backup your data before trying something new Please post any response to the newsgroups so others can benefit from it Feedback on answers is always appreciated! Using Excel 2002 & 2003 "delete automatically" wrote in message ... I looked at advance filter but not sure what to do with it "Teethless mama" wrote: Take a look Advanced Filter "delete automatically" wrote: I have a schedule made in excel for my employees for each day from now until 2010. When the employees look at the schedule they have to scroll down until they find todays date. My question is, when they open excel, can todays date automatically be on the top row or can the past dates be deleted automatically? |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
One more question
everything works great, but is there a way to keep a header for each categorie with out that dissapearing? "Paul B" wrote: Here is one way, Private Sub Workbook_Open() 'will go to todays date on open, dates in column A, 'of sheet named sheet1 On Error Resume Next Sheets("Sheet1").Select ThisDay = DateValue(Date) Range("A1").Select i = 0 Do While ActiveCell.Offset(i, 0).Value < ThisDay i = i + 1 Loop Application.Goto Reference:=ActiveCell.Offset(i, 0), _ scroll:=True End Sub To put in this macro, from your workbook right-click the workbook's icon and pick View Code. This icon is at the top-left of the spreadsheet this will open the VBA editor to the thisworkbook module, then, paste the code in the window that opens on the right hand side, press Alt and Q to close this window and go back to your workbook, now this will run every time you open the workbook. If you are using excel 2000 or newer you may have to change the macro security settings to get the macro to run. To change the security settings go to tools, macro, security, security level and set it to medium -- Paul B Always backup your data before trying something new Please post any response to the newsgroups so others can benefit from it Feedback on answers is always appreciated! Using Excel 2002 & 2003 "delete automatically" wrote in message ... I looked at advance filter but not sure what to do with it "Teethless mama" wrote: Take a look Advanced Filter "delete automatically" wrote: I have a schedule made in excel for my employees for each day from now until 2010. When the employees look at the schedule they have to scroll down until they find todays date. My question is, when they open excel, can todays date automatically be on the top row or can the past dates be deleted automatically? |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Select B2 or another cell if you also want to see more columns if you scroll
to the right and then window, freeze panes, row 1 will now be visible Thanks for the feed back -- Paul B Always backup your data before trying something new Please post any response to the newsgroups so others can benefit from it Feedback on answers is always appreciated! Using Excel 2002 & 2003 "delete automatically" wrote in message ... One more question everything works great, but is there a way to keep a header for each categorie with out that dissapearing? "Paul B" wrote: Here is one way, Private Sub Workbook_Open() 'will go to todays date on open, dates in column A, 'of sheet named sheet1 On Error Resume Next Sheets("Sheet1").Select ThisDay = DateValue(Date) Range("A1").Select i = 0 Do While ActiveCell.Offset(i, 0).Value < ThisDay i = i + 1 Loop Application.Goto Reference:=ActiveCell.Offset(i, 0), _ scroll:=True End Sub To put in this macro, from your workbook right-click the workbook's icon and pick View Code. This icon is at the top-left of the spreadsheet this will open the VBA editor to the thisworkbook module, then, paste the code in the window that opens on the right hand side, press Alt and Q to close this window and go back to your workbook, now this will run every time you open the workbook. If you are using excel 2000 or newer you may have to change the macro security settings to get the macro to run. To change the security settings go to tools, macro, security, security level and set it to medium -- Paul B Always backup your data before trying something new Please post any response to the newsgroups so others can benefit from it Feedback on answers is always appreciated! Using Excel 2002 & 2003 "delete automatically" wrote in message ... I looked at advance filter but not sure what to do with it "Teethless mama" wrote: Take a look Advanced Filter "delete automatically" wrote: I have a schedule made in excel for my employees for each day from now until 2010. When the employees look at the schedule they have to scroll down until they find todays date. My question is, when they open excel, can todays date automatically be on the top row or can the past dates be deleted automatically? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do I delete a row automatically after each date | Excel Discussion (Misc queries) | |||
how do I delete a row automatically after each date ends | Excel Discussion (Misc queries) | |||
I can't delete a cell without deleting a row | Excel Discussion (Misc queries) | |||
How do I delete the automatically inserted ' in every Excel cell? | Excel Discussion (Misc queries) | |||
Is there a way to insert a formula, password or macro in an excel spreadsheet that will automatically delete the spreadsheet? | Excel Discussion (Misc queries) |