Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 21
Default Excel Macro for time "Excel 2003"

Hi,
I work on the excel sheet everyday and following is my probem'


A B C
D E
Start time End time Filename Status
Count
1 ? ? Amway Entered
43
2 ? ? Geo
Applied 17
3 ....... ....... .........
....... .......
and so on.
When i enter "Amway" in column "C1", The Column "A1" should automatically
show the current time of the system as "Start time". And when i key "Entered"
in column "D1" , The Column "B1" should automatically show the current time
of the system as "End time".
I would not like to use Ctrl+Shift+: for current time, for each file as
their is huge date on the daily basis. So need a help from u that would save
my time & at the same time increase in the productive.
--
vijay

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...lic.excel.misc
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,355
Default Excel Macro for time "Excel 2003"

Right click on the worksheet tab in question and select VIEW CODE.

Paste this in

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count 1 Then Exit Sub
If Target.Row = 1 Then Exit Sub

If Not Intersect(Target, Me.Range("$C:$D")) Is Nothing Then
With Target.Offset(0, -2)
.Value = Date + Time
.NumberFormat = "m/d/yyyy h:mm AM/PM"
End With
End If

End Sub

Right now, this will put a date in if anything is entered in column C or D.
If you want it to check for specific things in each column, that would
require some additional code changes for you. :) If you have questions,
come back.
--
HTH,
Barb Reinhardt




"vijay" wrote:

Hi,
I work on the excel sheet everyday and following is my probem'


A B C
D E
Start time End time Filename Status
Count
1 ? ? Amway Entered
43
2 ? ? Geo
Applied 17
3 ....... ....... .........
....... .......
and so on.
When i enter "Amway" in column "C1", The Column "A1" should automatically
show the current time of the system as "Start time". And when i key "Entered"
in column "D1" , The Column "B1" should automatically show the current time
of the system as "End time".
I would not like to use Ctrl+Shift+: for current time, for each file as
their is huge date on the daily basis. So need a help from u that would save
my time & at the same time increase in the productive.
--
vijay

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...lic.excel.misc

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 21
Default Excel Macro for time "Excel 2003"

Hi Barb,
Thank for ur help. but still i did find solution for it.
if u could give me ur email ID i will send u the excel sheet that i'm
working on and again thank.

--
vijay


"Barb Reinhardt" wrote:

Right click on the worksheet tab in question and select VIEW CODE.

Paste this in

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count 1 Then Exit Sub
If Target.Row = 1 Then Exit Sub

If Not Intersect(Target, Me.Range("$C:$D")) Is Nothing Then
With Target.Offset(0, -2)
.Value = Date + Time
.NumberFormat = "m/d/yyyy h:mm AM/PM"
End With
End If

End Sub

Right now, this will put a date in if anything is entered in column C or D.
If you want it to check for specific things in each column, that would
require some additional code changes for you. :) If you have questions,
come back.
--
HTH,
Barb Reinhardt




"vijay" wrote:

Hi,
I work on the excel sheet everyday and following is my probem'


A B C
D E
Start time End time Filename Status
Count
1 ? ? Amway Entered
43
2 ? ? Geo
Applied 17
3 ....... ....... .........
....... .......
and so on.
When i enter "Amway" in column "C1", The Column "A1" should automatically
show the current time of the system as "Start time". And when i key "Entered"
in column "D1" , The Column "B1" should automatically show the current time
of the system as "End time".
I would not like to use Ctrl+Shift+: for current time, for each file as
their is huge date on the daily basis. So need a help from u that would save
my time & at the same time increase in the productive.
--
vijay

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...lic.excel.misc

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
Excel 2003: Conditional Formatting using "MIN" & "MAX" function MMangen Excel Discussion (Misc queries) 2 September 16th 08 07:13 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
How do I run a macro from inside an"=IF" formula in Excel 2003? Drawn83 Excel Worksheet Functions 1 June 4th 07 08:38 PM
In Excel 2003 is there a way to prevent "Save As" and "Print"? lucky2000 Excel Discussion (Misc queries) 3 April 26th 07 02:49 PM
Is there a "last saved on date/user" macro/function for Excel 2003 Zliz Excel Discussion (Misc queries) 2 January 2nd 07 10:12 PM


All times are GMT +1. The time now is 12:25 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"