LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,365
Default How to make a data validated field refresh

clara,
No, there's not a 'linked cell' like there would be for a dropdown list from
one of the toolboxes.

"clara" wrote:

Hi JLatham,

Thank you very much. I alway think there is a hidden reference between the
displayed cell and the validation list, but It seems not. So, there is no
hack way to do the change. Anyway, thank you very much for your code.

Clara
--
thank you so much for your help


"JLatham" wrote:

clara,
See my other post for detecting a change in the actual list used for
validation - it's looking for changes in that list, be they additions or
deletes or just changes.

The problem is really to update the displayed selection over in the
validated cell, which after some thought, is what I think you're actually
after. Is it?

If that's the case then we have to add some more code to basically compare
each entry in the validated cells with all entries in the (changed) list and
if the entry in the validated cell(s) doesn't match any entry in the list,
then make an assumption that the value it shows was the one that was changed
and force it to the new entry.

Example: your list contained an item "Joan" and one or more of the
validated cells had that choice chosen, so those show "Joan" in them. Now
you go to your source list and change "Joan" to "Joanne" but the validated
cell still shows "Joan" - since we don't know that "Joanne" was "Joan" before
the change, we have to look at all validated cells, get their value and
compare to all values in the source list, and if it doesn't match (we don't
find "Joan" in the list) we make an assumption that Joan used to be in the
source list and it was changed to Joanne (detected by _Change event) and
change "Joan" to "Joanne" over in the validated cell.

Is that what you're looking for?

"clara" wrote:

HI Bob,

How can I trap the list change event, could you give me some clues?

Clara
--
thank you so much for your help


"Bob Phillips" wrote:

Not directly as it reflects a selected value, not a reference to a list
position. I think that you would have to write some VBA to trap the list
change and update the DV knowing what it was and where that was in the
original list.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"clara" wrote in message
...
Hi all,

I have changed the list of a data validation, how can I make the
corresponding data validated field refreshed.

Clara
--
thank you so much for your help



 
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
Validated list - how to make conditional smartgal Excel Discussion (Misc queries) 1 June 18th 09 03:27 AM
Pivot Table -- Refresh Data in Field Dropdown Lists howard Excel Discussion (Misc queries) 1 December 22nd 06 03:02 PM
How to make Bullen's FilterCriteria() data refresh real-time? Dennis Excel Discussion (Misc queries) 9 March 12th 05 09:41 PM
Using VB to make certain field or button blink auto on new data NovicExcel Excel Programming 0 March 9th 05 07:11 PM
To make sure only the Validated list can be put in the drop down b Belmeera Pinto Excel Programming 1 January 12th 05 12:55 PM


All times are GMT +1. The time now is 05:45 PM.

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"