Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 47
Default In need of a macro.

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 47
Default In need of a macro.

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default In need of a macro.

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 47
Default In need of a macro.

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default In need of a macro.

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
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
Macro recorded... tabs & file names changed, macro hangs Steve Excel Worksheet Functions 3 October 30th 09 11:41 AM
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort Gavin Excel Worksheet Functions 0 May 17th 07 01:20 PM
how to count/sum by function/macro to get the number of record to do copy/paste in macro tango Excel Programming 1 October 15th 04 01:16 PM
macro to delete entire rows when column A is blank ...a quick macro vikram Excel Programming 4 May 3rd 04 08:45 PM
Start Macro / Stop Macro / Restart Macro Pete[_13_] Excel Programming 2 November 21st 03 05:04 PM


All times are GMT +1. The time now is 10:26 AM.

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

About Us

"It's about Microsoft Excel"