store RTD updates

adilift

New Member
Joined
Nov 10, 2002
Messages
12
Hi;
I am receiving RTD price streams in cell A1. How can I go about storing the RTD price updates in excel for that particular cell.
Any help is appreciated

Adil
 

Some videos you may like

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

PA HS Teacher

Well-known Member
Joined
Jul 17, 2004
Messages
2,838
Could explain to a novice such as myself what that means?

Does the value of cell A1 change periodically?

And you would like to keep a list of these values somewhere?
 

adilift

New Member
Joined
Nov 10, 2002
Messages
12
RTD is similar to DDE. RTD is "real time data" that excel is receiving from a RTD server. The value in the cell "A1" with RTD link changes dynamically. I would like to somehow capture these RTD updates and store them on an excel sheet.

Adil
 

PA HS Teacher

Well-known Member
Joined
Jul 17, 2004
Messages
2,838
Assuming you have a blank sheet name "Sheet2"

Hit Alt+F11 to bring up the VBA editor
On the left should be a window.
Look for the name of the sheet that has the dynamically updated cell.

click on it.

Choose Worksheet on the first drop down menu.
Choose Change on the drop down menu and paste the following code.

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = Range("A1").Address Then
  Worksheets("Sheet2").Cells(65536, 1).End(xlUp).Offset(1, 0).Value = Target.Value
End If
End Sub
 

Watch MrExcel Video

Forum statistics

Threads
1,123,402
Messages
5,601,475
Members
414,452
Latest member
Dannysamworth

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top