Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default making drop downs "volatile"

I have a sheet that contains drop down combo boxes that reference cells on a
separate sheet that contain filenames. I can click on an entry in the combo
box, and the file is automatically opened. The problem is that whatever
filename is displayed in the combo box before I click does nothing, until I
click another, close the file, then go back to the original. I am assuming I
need a volatile call, but I am unsure how to implement this. Any help is
appreciated.

wazooli

P.S. The combo boxes are Active X components, not made via the 'forms'
toolbar.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default making drop downs "volatile"

I guess what I'm really asking is how can I make the combo box "forget" what
value it contains before a change event.

"Wazooli" wrote:

I have a sheet that contains drop down combo boxes that reference cells on a
separate sheet that contain filenames. I can click on an entry in the combo
box, and the file is automatically opened. The problem is that whatever
filename is displayed in the combo box before I click does nothing, until I
click another, close the file, then go back to the original. I am assuming I
need a volatile call, but I am unsure how to implement this. Any help is
appreciated.

wazooli

P.S. The combo boxes are Active X components, not made via the 'forms'
toolbar.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default making drop downs "volatile"

Hi,
If you track changes with the _Click event (instead of the change event,)
set the combobox value to Null right before the end of the sub. When setting
Combobox1.Value=Null, it does NOT trigger the _Click event (contrary to the
Change event).
Since after each selection the box is reset to <blank, when you choose a
new file (even if it is the same) it itriggers the event.

I hope this helps
Sebastien

"Wazooli" wrote:

I have a sheet that contains drop down combo boxes that reference cells on a
separate sheet that contain filenames. I can click on an entry in the combo
box, and the file is automatically opened. The problem is that whatever
filename is displayed in the combo box before I click does nothing, until I
click another, close the file, then go back to the original. I am assuming I
need a volatile call, but I am unsure how to implement this. Any help is
appreciated.

wazooli

P.S. The combo boxes are Active X components, not made via the 'forms'
toolbar.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default making drop downs "volatile"

That does help. Thank you.

"sebastienm" wrote:

Hi,
If you track changes with the _Click event (instead of the change event,)
set the combobox value to Null right before the end of the sub. When setting
Combobox1.Value=Null, it does NOT trigger the _Click event (contrary to the
Change event).
Since after each selection the box is reset to <blank, when you choose a
new file (even if it is the same) it itriggers the event.

I hope this helps
Sebastien

"Wazooli" wrote:

I have a sheet that contains drop down combo boxes that reference cells on a
separate sheet that contain filenames. I can click on an entry in the combo
box, and the file is automatically opened. The problem is that whatever
filename is displayed in the combo box before I click does nothing, until I
click another, close the file, then go back to the original. I am assuming I
need a volatile call, but I am unsure how to implement this. Any help is
appreciated.

wazooli

P.S. The combo boxes are Active X components, not made via the 'forms'
toolbar.

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
CELL("filename") acting Volatile? (in assoc. with PULL) [email protected] Excel Worksheet Functions 4 August 3rd 06 03:23 PM
How can I get "=TODAY()" results to be non-volatile? FBC Dave Excel Worksheet Functions 2 August 2nd 06 06:21 PM
=CELL("filename") VOLATILE? DR Hall Excel Worksheet Functions 6 December 31st 05 06:32 PM
Making "examp le" become "examp_le" in a string Sworkhard Excel Programming 3 October 29th 04 09:31 PM
VBA: "Volatile" use of concatenated worksheetfunction expression Factivator Excel Programming 2 June 29th 04 04:30 PM


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