Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
LJK LJK is offline
external usenet poster
 
Posts: 1
Default Combo Box value changing when query refreshes

I have a Worksheet that uses Combo Boxes created from the
Forms Toolbar. The Combo Boxes each retrieve their data
from alphabetically-sorted columns of data in a worksheet
in the same workbook. This data is retreived from a SQL
database that is constantly being updated with new
values. The queries that retreive this data are set
to "Enable background refresh" and "Refresh data on file
open" so that the user can always choose values from the
most current data. The problem I'm having is this...A
user chooses a value from the Combo box and saves the
spreadsheet. When the user opens the spreadsheet at a
later time, if cells were added/deleted to/from the data
columns, these changes are affecting the value that was
originally saved in the combo box. For instance, the
original list contained the values of 1,2,3,4 and the user
originally chose value "4". Two new values of "1.5"
and "2.5" were subsequently added to the data list. When
the spreadsheet is opened again and the queries refresh,
the Combo Box value also refreshes and now displays "2.5"
seemingly because the "2.5" cell is in the former position
of the "4" value cell. Is there a way to stop the chosen
value from changing? (The worksheet w/ the combo boxes is
usually emailed between two individuals who fill out
different parts. Then it is finally emailed to a seperate
individual who prints it and uses it for data entry.)
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Combo Box value changing when query refreshes

Break the link and update with code. then you can determine when it is
updated. Otherwise, no. Linking a combobox to a cell is like linking a cell
to a cell. When a calculate is peformed, the combobox is updated. You
could try setting calculation to manual, but I am not sure this would be
reliable - especially since you can't guarantee that is the setting on both
machines whenever the workbook is opened.

--
Regards,
Tom Ogilvy

LJK wrote in message
...
I have a Worksheet that uses Combo Boxes created from the
Forms Toolbar. The Combo Boxes each retrieve their data
from alphabetically-sorted columns of data in a worksheet
in the same workbook. This data is retreived from a SQL
database that is constantly being updated with new
values. The queries that retreive this data are set
to "Enable background refresh" and "Refresh data on file
open" so that the user can always choose values from the
most current data. The problem I'm having is this...A
user chooses a value from the Combo box and saves the
spreadsheet. When the user opens the spreadsheet at a
later time, if cells were added/deleted to/from the data
columns, these changes are affecting the value that was
originally saved in the combo box. For instance, the
original list contained the values of 1,2,3,4 and the user
originally chose value "4". Two new values of "1.5"
and "2.5" were subsequently added to the data list. When
the spreadsheet is opened again and the queries refresh,
the Combo Box value also refreshes and now displays "2.5"
seemingly because the "2.5" cell is in the former position
of the "4" value cell. Is there a way to stop the chosen
value from changing? (The worksheet w/ the combo boxes is
usually emailed between two individuals who fill out
different parts. Then it is finally emailed to a seperate
individual who prints it and uses it for data entry.)



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
Multiple Combo Box Query PAR Excel Worksheet Functions 0 January 4th 08 03:36 PM
Changing the format of text in a combo box kuhac Excel Discussion (Misc queries) 1 August 1st 06 05:13 AM
"New Web Query" always refreshes data from website (3 times) Matt Suppa Excel Worksheet Functions 1 February 1st 06 05:50 PM
combo box query Nigel Excel Discussion (Misc queries) 0 May 5th 05 02:00 PM
Combo Box Control keeps changing sizes Michael Excel Worksheet Functions 0 February 16th 05 01:25 AM


All times are GMT +1. The time now is 05:35 AM.

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"