Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Cell Update only at a specific time.

I have a clock running in Excel. Data in one cell is constantly changing. At
a specific time which I specify in a cell, I want the value in the cell that
is constantly changing, snapshot in another cell. How do I do this?
For example, stock prices, they are constantly changing on my spreadsheet
being linked to the internet, at 10:30 I want the price of IBM in a specific
cell.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default Cell Update only at a specific time.

As you have a clock, I'm assuming you're using some type of VBA/macro. You
should be able to stick this snippet into the appropriate place in your code
(after it updates cell)

'A1 is your clock cell
'A2 is your fluctuating price cell
'A3 is "snapshot" cell
If Range("A1").Value = TimeValue("10:30") Then
Range("A3").Value = Range("A2").Value
End If
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Scott520" wrote:

I have a clock running in Excel. Data in one cell is constantly changing. At
a specific time which I specify in a cell, I want the value in the cell that
is constantly changing, snapshot in another cell. How do I do this?
For example, stock prices, they are constantly changing on my spreadsheet
being linked to the internet, at 10:30 I want the price of IBM in a specific
cell.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Cell Update only at a specific time.

I do not have a VB Macro. I am obtaining this clock update from the internet,
a web page. I am trying to avoid writing a Macro since I have limited
experience with them.

"Luke M" wrote:

As you have a clock, I'm assuming you're using some type of VBA/macro. You
should be able to stick this snippet into the appropriate place in your code
(after it updates cell)

'A1 is your clock cell
'A2 is your fluctuating price cell
'A3 is "snapshot" cell
If Range("A1").Value = TimeValue("10:30") Then
Range("A3").Value = Range("A2").Value
End If
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Scott520" wrote:

I have a clock running in Excel. Data in one cell is constantly changing. At
a specific time which I specify in a cell, I want the value in the cell that
is constantly changing, snapshot in another cell. How do I do this?
For example, stock prices, they are constantly changing on my spreadsheet
being linked to the internet, at 10:30 I want the price of IBM in a specific
cell.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default Cell Update only at a specific time.

I'm afraid for what you want, a macro is inevitable. But fear not, its fairly
simple to put in.

Right click on your sheet tab containing your clock. Click "view code".
Paste this in:

Private Sub Worksheet_Change(ByVal Target As Range)
'A1 is your clock cell
'A2 is your fluctuating price cell
'A3 is "snapshot" cell
'Change references as appropriate
If Target = Range("A1") Then
'Activates everytime target changes
If Range("A1").Value = TimeValue("10:30") Then
Range("A3").Value = Range("A2").Value
End If
End If
End Sub

Close the Visual Base Editor, and save. You're good to go now!


--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Scott520" wrote:

I do not have a VB Macro. I am obtaining this clock update from the internet,
a web page. I am trying to avoid writing a Macro since I have limited
experience with them.

"Luke M" wrote:

As you have a clock, I'm assuming you're using some type of VBA/macro. You
should be able to stick this snippet into the appropriate place in your code
(after it updates cell)

'A1 is your clock cell
'A2 is your fluctuating price cell
'A3 is "snapshot" cell
If Range("A1").Value = TimeValue("10:30") Then
Range("A3").Value = Range("A2").Value
End If
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Scott520" wrote:

I have a clock running in Excel. Data in one cell is constantly changing. At
a specific time which I specify in a cell, I want the value in the cell that
is constantly changing, snapshot in another cell. How do I do this?
For example, stock prices, they are constantly changing on my spreadsheet
being linked to the internet, at 10:30 I want the price of IBM in a specific
cell.

  #5   Report Post  
Junior Member
 
Posts: 5
Talking

Quote:
Originally Posted by Luke M View Post
I'm afraid for what you want, a macro is inevitable. But fear not, its fairly
simple to put in.

Right click on your sheet tab containing your clock. Click "view code".
Paste this in:

Private Sub Worksheet_Change(ByVal Target As Range)
'A1 is your clock cell
'A2 is your fluctuating price cell
'A3 is "snapshot" cell
'Change references as appropriate
If Target = Range("A1") Then
'Activates everytime target changes
If Range("A1").Value = TimeValue("10:30") Then
Range("A3").Value = Range("A2").Value
End If
End If
End Sub

Close the Visual Base Editor, and save. You're good to go now!


--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Scott520" wrote:

I do not have a VB Macro. I am obtaining this clock update from the internet,
a web page. I am trying to avoid writing a Macro since I have limited
experience with them.

"Luke M" wrote:

As you have a clock, I'm assuming you're using some type of VBA/macro. You
should be able to stick this snippet into the appropriate place in your code
(after it updates cell)

'A1 is your clock cell
'A2 is your fluctuating price cell
'A3 is "snapshot" cell
If Range("A1").Value = TimeValue("10:30") Then
Range("A3").Value = Range("A2").Value
End If
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Scott520" wrote:

I have a clock running in Excel. Data in one cell is constantly changing. At
a specific time which I specify in a cell, I want the value in the cell that
is constantly changing, snapshot in another cell. How do I do this?
For example, stock prices, they are constantly changing on my spreadsheet
being linked to the internet, at 10:30 I want the price of IBM in a specific
cell.


I am having the same situation and issues. I do have a continuous clock macro running but I tried to put the macro you wrote into mine and I still can't get it to work! HELP! : )
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
Force a cell to contain a specific time jrt Excel Discussion (Misc queries) 1 May 2nd 08 12:18 AM
Setting time of last update in a cell R Mallory Excel Discussion (Misc queries) 7 January 16th 07 09:47 PM
Click a cell and update to current time / date ? Eric Excel Discussion (Misc queries) 3 October 4th 06 12:12 AM
Update a cell with a specific value related to a date. Jeff Excel Worksheet Functions 5 December 9th 05 06:14 PM
How do you continuously update time and date in an Excel cell? engine99 Excel Worksheet Functions 7 February 21st 05 02:20 AM


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