![]() |
Can I delete a row automatically after each day is over
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? |
Can I delete a row automatically after each day is over
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? |
Can I delete a row automatically after each day is over
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? |
Can I delete a row automatically after each day is over
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? |
Can I delete a row automatically after each day is over
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? |
Can I delete a row automatically after each day is over
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? |
Can I delete a row automatically after each day is over
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? |
Can I delete a row automatically after each day is over
Thats what I thought, but when I try to freeze just the row I want, but it
freezes down about 16 rows and about 16 columns. I get a line going down and across that freezes. Any ideas? "Paul B" wrote: 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? |
Can I delete a row automatically after each day is over
Which cell did you click in when you told it to freeze? It will freeze
everything above and to the left of your selected cell. -- David Biddulph "delete automatically" wrote in message ... Thats what I thought, but when I try to freeze just the row I want, but it freezes down about 16 rows and about 16 columns. I get a line going down and across that freezes. Any ideas? "Paul B" wrote: 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 "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? |
All times are GMT +1. The time now is 12:05 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com