Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PH NEWS
 
Posts: n/a
Default Auto time freezed

I have a long sample list, (names and telephone no.), once a name and number
are used an outcome code is entered in the end cell like so,
Column A Column B Column C Column D
Name Number Outcome

What I would like to do is have the time automatically entered in column D
once there is an entry in column C and for the time to "freeze", no matter
what other calculations take place.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Stefi
 
Posts: n/a
Default Auto time freezed

You can solve this with a Change event as follows:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 3 Then
Range("D" & Target.Row) = Date
End If
End Sub

If you need more help on how to make an event procedure, please post!

Regards,
Stefi

€žPH NEWS€ ezt Ã*rta:

I have a long sample list, (names and telephone no.), once a name and number
are used an outcome code is entered in the end cell like so,
Column A Column B Column C Column D
Name Number Outcome

What I would like to do is have the time automatically entered in column D
once there is an entry in column C and for the time to "freeze", no matter
what other calculations take place.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PH NEWS
 
Posts: n/a
Default Auto time freezed

Yes, please could I have more help on how to make a event procedure. Should
I be entering that in the Visual Basic?


"Stefi" wrote in message
...
You can solve this with a Change event as follows:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 3 Then
Range("D" & Target.Row) = Date
End If
End Sub

If you need more help on how to make an event procedure, please post!

Regards,
Stefi

"PH NEWS" ezt írta:

I have a long sample list, (names and telephone no.), once a name and

number
are used an outcome code is entered in the end cell like so,
Column A Column B Column C Column D
Name Number Outcome

What I would like to do is have the time automatically entered in column

D
once there is an entry in column C and for the time to "freeze", no

matter
what other calculations take place.





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Stefi
 
Posts: n/a
Default Auto time freezed

Yes, you have to use Visual Basic:

Alt-F11 (brings up VB)
Right-click on Sheet1 in Project window (left side of the screen)
Click on View code in local menu
Click on left-side drop-down list . Choose Worksheet
Click on right-side drop-down list . Choose Change
Copy
If Target.Column = 3 Then
Range("D" & Target.Row) = Date
End If
lines between lines
Private Sub Worksheet_Change(ByVal Target As Range)

End Sub

Hope it's clear!
Regards,
Stefi

€žPH NEWS€ ezt Ã*rta:

Yes, please could I have more help on how to make a event procedure. Should
I be entering that in the Visual Basic?


"Stefi" wrote in message
...
You can solve this with a Change event as follows:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 3 Then
Range("D" & Target.Row) = Date
End If
End Sub

If you need more help on how to make an event procedure, please post!

Regards,
Stefi

"PH NEWS" ezt Ã*rta:

I have a long sample list, (names and telephone no.), once a name and

number
are used an outcome code is entered in the end cell like so,
Column A Column B Column C Column D
Name Number Outcome

What I would like to do is have the time automatically entered in column

D
once there is an entry in column C and for the time to "freeze", no

matter
what other calculations take place.






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PH NEWS
 
Posts: n/a
Default Auto time freezed

Thank you very very much, that's fantastic.

stevenL

"Stefi" wrote in message
...
Yes, you have to use Visual Basic:

Alt-F11 (brings up VB)
Right-click on Sheet1 in Project window (left side of the screen)
Click on View code in local menu
Click on left-side drop-down list . Choose Worksheet
Click on right-side drop-down list . Choose Change
Copy
If Target.Column = 3 Then
Range("D" & Target.Row) = Date
End If
lines between lines
Private Sub Worksheet_Change(ByVal Target As Range)

End Sub

Hope it's clear!
Regards,
Stefi

"PH NEWS" ezt írta:

Yes, please could I have more help on how to make a event procedure.

Should
I be entering that in the Visual Basic?


"Stefi" wrote in message
...
You can solve this with a Change event as follows:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 3 Then
Range("D" & Target.Row) = Date
End If
End Sub

If you need more help on how to make an event procedure, please post!

Regards,
Stefi

"PH NEWS" ezt írta:

I have a long sample list, (names and telephone no.), once a name

and
number
are used an outcome code is entered in the end cell like so,
Column A Column B Column C Column D
Name Number Outcome

What I would like to do is have the time automatically entered in

column
D
once there is an entry in column C and for the time to "freeze", no

matter
what other calculations take place.










  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PH NEWS
 
Posts: n/a
Default Auto time freezed

That was and is fantastic, but could you help me further. Is it possible to
add something to that entry in VB which states that if C is blank D will be
blank?


"PH NEWS" wrote in message
...
Yes, please could I have more help on how to make a event procedure.

Should
I be entering that in the Visual Basic?


"Stefi" wrote in message
...
You can solve this with a Change event as follows:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 3 Then
Range("D" & Target.Row) = Date
End If
End Sub

If you need more help on how to make an event procedure, please post!

Regards,
Stefi

"PH NEWS" ezt írta:

I have a long sample list, (names and telephone no.), once a name and

number
are used an outcome code is entered in the end cell like so,
Column A Column B Column C Column D
Name Number Outcome

What I would like to do is have the time automatically entered in

column
D
once there is an entry in column C and for the time to "freeze", no

matter
what other calculations take place.







  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Stefi
 
Posts: n/a
Default Auto time freezed

I don't understand your request clearly! If you leave column C blank, column
D also remains blank. Do you want a text in column D saying "Column C is
blank therefore column D is also blank!"?

Stefi


€žPH NEWS€ ezt Ã*rta:

That was and is fantastic, but could you help me further. Is it possible to
add something to that entry in VB which states that if C is blank D will be
blank?


"PH NEWS" wrote in message
...
Yes, please could I have more help on how to make a event procedure.

Should
I be entering that in the Visual Basic?


"Stefi" wrote in message
...
You can solve this with a Change event as follows:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 3 Then
Range("D" & Target.Row) = Date
End If
End Sub

If you need more help on how to make an event procedure, please post!

Regards,
Stefi

"PH NEWS" ezt Ã*rta:

I have a long sample list, (names and telephone no.), once a name and

number
are used an outcome code is entered in the end cell like so,
Column A Column B Column C Column D
Name Number Outcome

What I would like to do is have the time automatically entered in

column
D
once there is an entry in column C and for the time to "freeze", no

matter
what other calculations take place.








  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PH NEWS
 
Posts: n/a
Default Auto time freezed

Sorry about that. What I mean is once I've made an entry in column C the
time appears in column D, which is exactly what I wanted, however when the
entry in column C is deleted I would like column D to be blank. Is there a
way of doing that?
"Stefi" wrote in message
...
I don't understand your request clearly! If you leave column C blank,

column
D also remains blank. Do you want a text in column D saying "Column C is
blank therefore column D is also blank!"?

Stefi


"PH NEWS" ezt írta:

That was and is fantastic, but could you help me further. Is it possible

to
add something to that entry in VB which states that if C is blank D will

be
blank?


"PH NEWS" wrote in message
...
Yes, please could I have more help on how to make a event procedure.

Should
I be entering that in the Visual Basic?


"Stefi" wrote in message
...
You can solve this with a Change event as follows:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 3 Then
Range("D" & Target.Row) = Date
End If
End Sub

If you need more help on how to make an event procedure, please

post!

Regards,
Stefi

"PH NEWS" ezt írta:

I have a long sample list, (names and telephone no.), once a name

and
number
are used an outcome code is entered in the end cell like so,
Column A Column B Column C Column D
Name Number Outcome

What I would like to do is have the time automatically entered in

column
D
once there is an entry in column C and for the time to "freeze",

no
matter
what other calculations take place.










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
Combine Date & Time Cells KrunoG Excel Discussion (Misc queries) 0 January 31st 06 08:08 PM
time sheet to calculate 2 different columns John Sullivan Excel Worksheet Functions 1 October 21st 05 06:48 AM
Auto Populate Time JAG Excel Discussion (Misc queries) 1 October 20th 05 04:15 AM
Adding time damezumari Excel Discussion (Misc queries) 2 June 20th 05 08:35 PM
Time Sheet Calculation Help Needed! sax30 Excel Worksheet Functions 2 April 26th 05 08:08 PM


All times are GMT +1. The time now is 02:26 PM.

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"