Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am looking for a macro that will seperate and add the next day.
When I use this worksheet, sometimes I input multiple days at a time so the now function wouldn't work. But i would like to be able to run a macro that will look and see what the last day entered was in column B. Insert a break of some sort. Preferably fill cells A:Q solid black. How they are seperated is unimportant. Just something to show the end of a day. For example, if cell B26 is my last entry, and it was 11/23/2004. Starting at A27, Fill cells A27:P27 with a black background, and in those cells in white bold font enter 11/24/2004. Thanks in advance for your help, Steve |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
A bit of a revision or clarification, when 11/24/2004 is entered, I would
like it to be entered in column B. I don't want A:P to be merged. Thanks again, Steve "Steve" wrote: I am looking for a macro that will seperate and add the next day. When I use this worksheet, sometimes I input multiple days at a time so the now function wouldn't work. But i would like to be able to run a macro that will look and see what the last day entered was in column B. Insert a break of some sort. Preferably fill cells A:Q solid black. How they are seperated is unimportant. Just something to show the end of a day. For example, if cell B26 is my last entry, and it was 11/23/2004. Starting at A27, Fill cells A27:P27 with a black background, and in those cells in white bold font enter 11/24/2004. Thanks in advance for your help, Steve |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub FillIn()
Dim cLastRow As Long cLastRow = Cells(Rows.Count, "B").End(xlUp).Row With Cells(cLastRow + 1, "A").Resize(1, 17) .Interior.Color = RGB(&H0, &H0, &H0) .Value = Cells(cLastRow, "B").Value + 1 With .Font .Bold = True .Color = RGB(&HFF, &HFF, &HFF) End With .NumberFormat = "mm/dd/yy" End With End Sub -- HTH RP (remove nothere from the email address if mailing direct) "Steve" wrote in message ... A bit of a revision or clarification, when 11/24/2004 is entered, I would like it to be entered in column B. I don't want A:P to be merged. Thanks again, Steve "Steve" wrote: I am looking for a macro that will seperate and add the next day. When I use this worksheet, sometimes I input multiple days at a time so the now function wouldn't work. But i would like to be able to run a macro that will look and see what the last day entered was in column B. Insert a break of some sort. Preferably fill cells A:Q solid black. How they are seperated is unimportant. Just something to show the end of a day. For example, if cell B26 is my last entry, and it was 11/23/2004. Starting at A27, Fill cells A27:P27 with a black background, and in those cells in white bold font enter 11/24/2004. Thanks in advance for your help, Steve |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The macro worked great. I have one quick question. The date being entered
appears all the cells for the specified row. Is there a way to modify it so that it only appears in column B? "Bob Phillips" wrote: Sub FillIn() Dim cLastRow As Long cLastRow = Cells(Rows.Count, "B").End(xlUp).Row With Cells(cLastRow + 1, "A").Resize(1, 17) .Interior.Color = RGB(&H0, &H0, &H0) .Value = Cells(cLastRow, "B").Value + 1 With .Font .Bold = True .Color = RGB(&HFF, &HFF, &HFF) End With .NumberFormat = "mm/dd/yy" End With End Sub -- HTH RP (remove nothere from the email address if mailing direct) "Steve" wrote in message ... A bit of a revision or clarification, when 11/24/2004 is entered, I would like it to be entered in column B. I don't want A:P to be merged. Thanks again, Steve "Steve" wrote: I am looking for a macro that will seperate and add the next day. When I use this worksheet, sometimes I input multiple days at a time so the now function wouldn't work. But i would like to be able to run a macro that will look and see what the last day entered was in column B. Insert a break of some sort. Preferably fill cells A:Q solid black. How they are seperated is unimportant. Just something to show the end of a day. For example, if cell B26 is my last entry, and it was 11/23/2004. Starting at A27, Fill cells A27:P27 with a black background, and in those cells in white bold font enter 11/24/2004. Thanks in advance for your help, Steve |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub FillIn()
Dim cLastRow As Long cLastRow = Cells(Rows.Count, "B").End(xlUp).Row With Cells(cLastRow + 1, "A").Resize(1, 17) .Interior.Color = RGB(&H0, &H0, &H0) .Item(1,1).Value = Cells(cLastRow, "B").Value + 1 With .Item(1,1).Font .Bold = True .Color = RGB(&HFF, &HFF, &HFF) End With .Item(1,1).NumberFormat = "mm/dd/yy" End With End Sub -- Regards, Tom Ogilvy "Steve" wrote in message ... The macro worked great. I have one quick question. The date being entered appears all the cells for the specified row. Is there a way to modify it so that it only appears in column B? "Bob Phillips" wrote: Sub FillIn() Dim cLastRow As Long cLastRow = Cells(Rows.Count, "B").End(xlUp).Row With Cells(cLastRow + 1, "A").Resize(1, 17) .Interior.Color = RGB(&H0, &H0, &H0) .Value = Cells(cLastRow, "B").Value + 1 With .Font .Bold = True .Color = RGB(&HFF, &HFF, &HFF) End With .NumberFormat = "mm/dd/yy" End With End Sub -- HTH RP (remove nothere from the email address if mailing direct) "Steve" wrote in message ... A bit of a revision or clarification, when 11/24/2004 is entered, I would like it to be entered in column B. I don't want A:P to be merged. Thanks again, Steve "Steve" wrote: I am looking for a macro that will seperate and add the next day. When I use this worksheet, sometimes I input multiple days at a time so the now function wouldn't work. But i would like to be able to run a macro that will look and see what the last day entered was in column B. Insert a break of some sort. Preferably fill cells A:Q solid black. How they are seperated is unimportant. Just something to show the end of a day. For example, if cell B26 is my last entry, and it was 11/23/2004. Starting at A27, Fill cells A27:P27 with a black background, and in those cells in white bold font enter 11/24/2004. Thanks in advance for your help, Steve |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro recorded... tabs & file names changed, macro hangs | Excel Worksheet Functions | |||
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort | Excel Worksheet Functions | |||
how to count/sum by function/macro to get the number of record to do copy/paste in macro | Excel Programming | |||
macro to delete entire rows when column A is blank ...a quick macro | Excel Programming | |||
Start Macro / Stop Macro / Restart Macro | Excel Programming |