Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default "freeze" an imported realtime updated cell value

Bernie,

"Bernie Deitrick" wrote:

Dan,

For simplicity and maintainability, move all your data links into one table, on a sheet named
"DataLinks".

Let's say that you have the links starting in cell A2, down to A21. In B2, use the formula

=A2

and copy that down to B21. Now you will have a 'doubled' table of data.

Here's the key point - Link all of your cells needing the values from the data links to the cells in
column B.

When you want to freeze the values, run this macro:

Sub Freeze()
Worksheets("DataLinks").Range("B2:B21").Value = _
Worksheets("DataLinks").Range("B2:B21").Value
End Sub

When you want to unfreeze the links, run this macro:

Sub UnFreeze()
Worksheets("DataLinks").Range("B2:B21").FormulaR1C 1= _
"=RC[-1]"
End Sub

The links in column A are unaffected by these manipulations.

......
the macros work as a charm. Thanx. That's exactly what I was needing.

Assign the macros to buttons, and perhaps write the state to another cell, along the lines of:

Worksheets("Other Sheet").Range("StatusCell").Value = "Values FROZEN"
or
Worksheets("Other Sheet").Range("StatusCell").Value = "Values Active"

......
but running them it's not user-friendly and that's because I think I'm
confused with these 2 above codes. Where do I put them? As a code in the
above macros? Macros are not a key strength of mine. I do get that what you
mean is having a button in the worksheet associated to an underlying macro,
and by clicking said button macro is activated. But how???

HTH,
Bernie
MS Excel MVP

....
I wrote you that for the time being I'm not having the inputs as dynamic
ranges. I decided there's always going to be 10 series of options in
DataLinks A2:A11. But I do want to have a routine so that the user at the
beginning of the exercize period types the options labels (e.g. PETRJ52,
PETRJ54,...) sequentially in this range, remaining there until new exercize
period starts. However, Input Box procedure allows me only having 1 input at
a time and the corresponding cell must be highlighted manually. Is there a
way to have dialog box inputting all 10 entries in a row?

Thank you very much for your time and attention. Most kind of you.

--
Dan GSB
Asset Management - Rio
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
Help!!! Enter "7" in a cell and Excel changes the "7" to "11" immediately!!! [email protected] Excel Discussion (Misc queries) 3 January 5th 07 02:18 PM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM
freeze window creates multiple "views" suffixed with ":n" dgaex001 Excel Discussion (Misc queries) 5 March 22nd 06 05:28 PM
Complex if test program possible? If "value" "value", paste "value" in another cell? jseabold Excel Discussion (Misc queries) 1 January 30th 06 10:01 PM
extract data from a realtime updated cell ALVESM Excel Discussion (Misc queries) 4 March 21st 05 05:21 PM


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