PC Review


Reply
Thread Tools Rate Thread

Change date formula to Value

 
 
Michael
Guest
Posts: n/a
 
      9th Jun 2008
I have a spreadsheet to record serial numbers already populated in column A
and the date the specific serial number was issued. The issuer puts a code
in column C which automatically assigns a date in column E and some location
details in columns F to H. What I need to do is run a macro which saves the
file but changes column E to a value if column C is not blank. Column C can
have gaps between rows.

Any ideas would be greatly appreciated

Michael
 
Reply With Quote
 
 
 
 
Joel
Guest
Posts: n/a
 
      9th Jun 2008
why don't you use a worksheet_Change function that when a date is entered in
column c todays date is automatically enetered in column E.

Sub worksheet_change(ByVal Target As Range)

For Each cell In Target
If cell.Column = 3 Then
cell.Offset(0, 2) = Date
End If

Next cell

End Sub


"Michael" wrote:

> I have a spreadsheet to record serial numbers already populated in column A
> and the date the specific serial number was issued. The issuer puts a code
> in column C which automatically assigns a date in column E and some location
> details in columns F to H. What I need to do is run a macro which saves the
> file but changes column E to a value if column C is not blank. Column C can
> have gaps between rows.
>
> Any ideas would be greatly appreciated
>
> Michael

 
Reply With Quote
 
Otto Moehrbach
Guest
Posts: n/a
 
      9th Jun 2008
Michael
This little macro will do that. HTH Otto
Sub EValue()
Dim rColC As Range
Dim i As Range
Set rColC = Range("C2", Range("C" & Rows.Count).End(xlUp))
For Each i In rColC
If Not IsEmpty(i.Value) Then
i.Offset(, 2).Copy
i.Offset(, 2).PasteSpecial xlPasteValues
End If
Next i
End Sub
"Michael" <(E-Mail Removed)> wrote in message
news:80F8B1AD-B187-43D7-B4EA-(E-Mail Removed)...
>I have a spreadsheet to record serial numbers already populated in column A
> and the date the specific serial number was issued. The issuer puts a
> code
> in column C which automatically assigns a date in column E and some
> location
> details in columns F to H. What I need to do is run a macro which saves
> the
> file but changes column E to a value if column C is not blank. Column C
> can
> have gaps between rows.
>
> Any ideas would be greatly appreciated
>
> Michael



 
Reply With Quote
 
Michael
Guest
Posts: n/a
 
      10th Jun 2008
Thanks very much for this it has saved me a lot of head scratching!!!

Michael

"Otto Moehrbach" wrote:

> Michael
> This little macro will do that. HTH Otto
> Sub EValue()
> Dim rColC As Range
> Dim i As Range
> Set rColC = Range("C2", Range("C" & Rows.Count).End(xlUp))
> For Each i In rColC
> If Not IsEmpty(i.Value) Then
> i.Offset(, 2).Copy
> i.Offset(, 2).PasteSpecial xlPasteValues
> End If
> Next i
> End Sub
> "Michael" <(E-Mail Removed)> wrote in message
> news:80F8B1AD-B187-43D7-B4EA-(E-Mail Removed)...
> >I have a spreadsheet to record serial numbers already populated in column A
> > and the date the specific serial number was issued. The issuer puts a
> > code
> > in column C which automatically assigns a date in column E and some
> > location
> > details in columns F to H. What I need to do is run a macro which saves
> > the
> > file but changes column E to a value if column C is not blank. Column C
> > can
> > have gaps between rows.
> >
> > Any ideas would be greatly appreciated
> >
> > Michael

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why does Excel change a date into a formula? =?Utf-8?B?amVkbW8xNjQw?= Microsoft Excel Misc 3 18th Jul 2007 05:44 PM
what is the formula to change date of birth into age =?Utf-8?B?RWRkaWU=?= Microsoft Excel Misc 6 16th May 2007 02:34 PM
Dynamically Change date in Formula Midget Microsoft Excel Worksheet Functions 3 9th Feb 2007 02:35 AM
How do i change the date formula =?Utf-8?B?Y3ltbw==?= Microsoft Excel Setup 2 12th Sep 2006 11:28 PM
I need a formula that change all date by putting in one date =?Utf-8?B?c2hlcnJpZUBvd25hY29uZG8uY29t?= Microsoft Excel Worksheet Functions 2 7th Aug 2006 04:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:35 AM.