Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Combo text value disappears when wkb opens??!

Hi,

I haven't been able to find anything on this in the forum.

My situation is that I have a combo box control on a sheet. The combo
list is populated by querying an access db when the combo is activated,
the combo has 3 columns, column 1 is bound (which is linked to a cell
in the wkb), column 2 is user info only, column 3 is set as TextColumn.

It's all working great until I close the workbook and reopen it (after
having saved). When the sheet first pops up the combo displays the
column 3 text value as it did before it was closed, but as the workbook
finished loading all of a sudden the combo loses its text value and
displays the bound value.

I have tried opening the book with macros disabled to see if it is my
code which is causeing the problem, but the result is the same. I also
have another combo on the sheet which only shows one column, the bound
column, and it does not have the same problem, it works just as I would
expect.

If anyone has an idea of what I can do to fix this I would be most
appreciative.

Regards
Henry

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default Combo text value disappears when wkb opens??!

My guess would be to call the macro that does the query to populate the
ComboBox at the WorkBook_Open Event.

Mike F
"hef" wrote in message
oups.com...
Hi,

I haven't been able to find anything on this in the forum.

My situation is that I have a combo box control on a sheet. The combo
list is populated by querying an access db when the combo is activated,
the combo has 3 columns, column 1 is bound (which is linked to a cell
in the wkb), column 2 is user info only, column 3 is set as TextColumn.

It's all working great until I close the workbook and reopen it (after
having saved). When the sheet first pops up the combo displays the
column 3 text value as it did before it was closed, but as the workbook
finished loading all of a sudden the combo loses its text value and
displays the bound value.

I have tried opening the book with macros disabled to see if it is my
code which is causeing the problem, but the result is the same. I also
have another combo on the sheet which only shows one column, the bound
column, and it does not have the same problem, it works just as I would
expect.

If anyone has an idea of what I can do to fix this I would be most
appreciative.

Regards
Henry



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Combo text value disappears when wkb opens??!

Yeah, that would be an option, I can certainly work around it, but I am
confused by the behaviour so I was hoping to see if anyone had an
explanation for it so I could avoid just adding more code.

Thanks for the response.
Henry

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
Text box disappears with 2 columns smith70 Excel Discussion (Misc queries) 0 November 16th 09 04:25 PM
Combo box disappears after selection made Inquiringmind Excel Discussion (Misc queries) 0 February 13th 07 02:25 AM
All text disappears when wrap text in excel is used sstanfil Excel Worksheet Functions 2 October 19th 06 06:58 PM
Text box disappears Suenapky Charts and Charting in Excel 0 December 8th 05 06:35 PM
Text disappears when word wrap is used Mark_GS1CA Excel Discussion (Misc queries) 12 October 17th 05 12:44 PM


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