Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / May 2008

Tip: Looking for answers? Try searching our database.

Can I graph an auto updating cell

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
safe.store.file@gmail.com - 14 May 2008 19:11 GMT
I have a sheet with cells auto updating there contents by linking to a
data source out of excel
can I use them as data source for a graph and how?

Or saving them in another sheet by time for instance:
time cell value
09:00:00 56
09:00:01 54
.............
...........
Reply With Quote
Jon Peltier - 15 May 2008 02:39 GMT
> I have a sheet with cells auto updating there contents by linking to a
> data source out of excel
[quoted text clipped - 4 lines]
> 09:00:00 56
> 09:00:01 54

Some kind of DDE link?

This is generally done by capturing the Worksheet_Calculate event when the
linked cell updates, then saving the value with a time stamp in another
range. This range can then be plotted.

> Reply With Quote

If you'd like a proposal, follow up to my email address:

jon at peltiertech dot com

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______
safe.store.file@gmail.com - 15 May 2008 09:35 GMT
On May 15, 4:39 am, "Jon Peltier" <jonxlmv...@SPAMpeltiertech.com>
wrote:
> > I have a sheet with cells auto updating there contents by linking to a
> > data source out of excel
[quoted text clipped - 23 lines]
> Peltier Technical Services, Inc. -http://PeltierTech.com
> _______
Thanks Jon Peltier,

Yes it's a dde link

This is generally done by capturing the Worksheet_Calculate event when
the
> linked cell updates, then saving the value with a time stamp in another
> range. This range can then be plotted.

That's exactly what i need ; but how to do it?
Is it a direct or require some tempering ?
Jon Peltier - 15 May 2008 12:03 GMT
It's not too difficult. I usually put a formula in an unused cell that
points to the cell with the link (like =B3) so that the change in the link
initiates a worksheet recalc. I use a sheet event to act on the recalc.
Right click the sheet tab, choose View Code. At the top of the code module
that pops up in the VBE, select Worksheet from the left hand dropdown, and
Calculate from the right hand dropdown. This code outline appears in the
code window:

Private Sub Worksheet_Calculate()

End Sub

Let's say you're taking the value in cell B3, and storing it in column F,
and the time in column E. This is the code you would use:

Private Sub Worksheet_Calculate()
 Dim iRow as Long

 iRow = Me.Range("F65536").End(xlUp).Row
 Me.Range("E1:F1").Offset(iRow).Value = Array(Now, Me.Range("B3").Value
End Sub

Of course, a little validation and error proofing would help as well.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______

> On May 15, 4:39 am, "Jon Peltier" <jonxlmv...@SPAMpeltiertech.com>
> wrote:
[quoted text clipped - 37 lines]
> That's exactly what i need ; but how to do it?
> Is it a direct or require some tempering ?
safe.store.file@gmail.com - 15 May 2008 12:52 GMT
On May 15, 2:03 pm, "Jon Peltier" <jonxlmv...@SPAMpeltiertech.com>
wrote:
> It's not too difficult. I usually put a formula in an unused cell that
> points to the cell with the link (like =B3) so that the change in the link
[quoted text clipped - 72 lines]
> > That's exactly what i need ; but how to do it?
> > Is it a direct or require some tempering ?

Jon, thank you very much for your help
clear and simple
I'll try it
safe.store.file@gmail.com - 17 May 2008 11:18 GMT
On May 15, 2:52 pm, safe.store.f...@gmail.com wrote:
> On May 15, 2:03 pm, "Jon Peltier" <jonxlmv...@SPAMpeltiertech.com>
> wrote:
[quoted text clipped - 79 lines]
> clear and simple
> I'll try it

Thank you very much indeed

It did work very fine as expected
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.