"LondonLad" <Lond...@discussions.microsoft.com> wrote in message
news:7E7876DF-06F8-4313...@microsoft.com...
Just write the code in File1's Click event.
Or is there more to this that you're not telling us?
--
Mike
Yes.
You can synchronize selection (highlighting) between two ListBox controls by
merely adding code to manage one ListBox to the click event in the other.
It is not possible to provide a more concrete example as "is related" is not
defined. One can guess, but that is seldom useful. <g>
Try explaining your particular problem in more detail. Also might I suggest
you be a tad more "Hungarian" in your description. eg, is "File1" a
"ListBox1"? Or ????
-ralph
"MikeD" <nob...@nowhere.edu> wrote in message
news:%23wJJV4K...@TK2MSFTNGP06.phx.gbl...
I thought it was your day to have the Crystal Ball?
Duties and responsibilities always seem to get mucked up over the Holidays.
[OT: I was watching a game the other day and they showed the fans out there
shovelling snow off the pitch. I got a chuckle from it. Is that normal over
there?]
-ralph
"MikeD" wrote:
> .
>
File2.ListIndex = File1.ListIndex
HOWEVER, executing this code will trigger a click even in File2, so if you
have code in the File2 Click event, you might have to create a global flag,
set it in File1's Click event, check it in File2's click event where, if
set, unset it and then exit the sub.
--
Rick (MVP - Excel)
"LondonLad" <Lond...@discussions.microsoft.com> wrote in message
news:E9A5B2AB-9F9E-45C7...@microsoft.com...
Also I have set the File2.Enabled to False will this stop the click event?
Regards
"Rick Rothstein" wrote:
> .
>
Here's a question. If the user cannot interact with one of the lists, then
why show it at all?
LFS
Regards
"Larry Serflaten" wrote:
> .
>