LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Enter timestamp when column is modified

I wrote following code:

Private Sub Worksheet_Change(ByVal Target As Range)

If Target.Column = 2 And Target.Value = 100 Then
Cells(Target.Row, 3).Value = Date & " - " & Time
Target.Value = Target.Value / 100
Target.Style = "Percent"
End If

End Sub

The idea of this is when i enter value 100 in column B, then timestamp is
inserted in column C.
I know this code sux - last 2 rows of this code were written cuz i didn't
know how to triger this macro by entering value - 100%.
I want to know:

1) how do i triger a macro when value 100% is entered? I mean 100 is entered
in cell which is formated as % ?
2) how do i format my timestamp so it enters date & time and then i can add
rest of the formating through cell formating ? For example when i enter date
and time by pressing ctrl + ; then space and then ctrl + shift + ; i get
"date time" and after this i can format this datetime as i want. But after i
get the same through macro excel does not respond to formating.
3) i want to add last modified timestamp in column 5 which would trigger
each time value is entered/changed in column 2 how do i do this ?
 
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
"last modified" timestamp function in excel 2003 veek New Users to Excel 6 July 26th 08 05:13 AM
dynamically enter name of last modified by in spreadsheet on save HW Excel Discussion (Misc queries) 1 June 28th 05 06:15 PM
Determine if cell was modified by Enter , Paste or Delete Randy Excel Programming 3 April 30th 05 04:17 PM
How do I enter the date last modified in the footer of an Excel d. Last modified date in footer Excel Discussion (Misc queries) 1 February 6th 05 11:12 PM
Filename and creation timestamp in 2-column combobox L Mehl Excel Programming 4 February 10th 04 12:40 AM


All times are GMT +1. The time now is 12:29 PM.

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

About Us

"It's about Microsoft Excel"