Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
carl
 
Posts: n/a
Default Recording the First Change of a Cell Value

I have a spread sheet that looks like so before the start
of the trading day:

ColA ColB ColC
ABC 4/7/2005

ColB tracks the trade time of stock ABC.

When ABC does it's first trade, the spreadsheet looks

like so:

ColA ColB ColC
ABC 9:32:28AM

Is there a macro that will record the time of the first trade and place it in ColC ??


Thank you in advance.

  #2   Report Post  
Duke Carey
 
Posts: n/a
Default

Carl -

How does that cell get updated?

If it's from a live feed from some online data source, then you probably
ought to post this in the Excel.Programming NG where you may find an answer.

If it's updated manually, then you need only write a worksheet change event.
Something like

Private Sub Worksheet_Change(ByVal Target As Range)
With Target
If .Column = 2 And .Row = 5 Then .Offset(0, 1).Value = Target.Value
End With
End Sub




"carl" wrote:

I have a spread sheet that looks like so before the start
of the trading day:

ColA ColB ColC
ABC 4/7/2005

ColB tracks the trade time of stock ABC.

When ABC does it's first trade, the spreadsheet looks

like so:

ColA ColB ColC
ABC 9:32:28AM

Is there a macro that will record the time of the first trade and place it in ColC ??


Thank you in advance.

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
Look for change next blank cell in Range Nigel Bennett Excel Worksheet Functions 1 March 13th 05 09:45 PM
change a function in a workbook without changing every cell sir lancelot Excel Worksheet Functions 3 March 10th 05 11:29 PM
Can an excel cell automatically change fill colors based on values John Clark Excel Discussion (Misc queries) 1 February 5th 05 05:21 PM
Change value in cell every n seconds Stan Altshuller Excel Worksheet Functions 1 December 23rd 04 07:51 PM
change operating cells dynamically according to the value of a fixed cell Zuohong Excel Worksheet Functions 2 November 17th 04 08:11 AM


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