Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Problem updating a ComboBox using VBA

The Problem I am currently experiencing is that the update
of a combobox in an Excel-sheet occurs too late.

In the program I set the value property of a combobox in a
worksheet to various values and print the resulting sheet.
The data of the sheet is all updated correctly but the
display of the comboboxes is only updated the first time the
value property is set. Using ListIndex instead of Value
yields the same result. All change events etc. are called
correctly.

Is there a way to force an update for the display of a
combobox.

Thanks in advance
Peter Fopma
  #2   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Problem updating a ComboBox using VBA

Hi Peter,

have you tried using the _afterupdate()
command for your combobox??

Thank you,

Robert Couchman
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Problem updating a ComboBox using VBA

Hi Robert,

thanks for your reply, but I can only find a reference to the
AfterUpdate event. This will be triggered after the content
changed.

My code looks like this

sub print (values as collection)
for each val in collection
ActiveWorkbook.Sheets("SheetName").TheComboBox.Val ue = val
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
next
end sub

The first printout shows the expected value in the combobox. For
the other printouts Change events (even for the combobox) are called
and the sheet is updated but the ComboBox-display remains
unchanged. How should I use the AfterUpdate?

Thanks
Peter
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
ComboBox problem hoyos Excel Discussion (Misc queries) 4 December 10th 09 11:16 AM
Combobox problem Ian Coates Excel Programming 4 February 21st 04 09:02 AM
Complex Combobox problem . mattis2k[_2_] Excel Programming 1 November 14th 03 11:15 AM
Activation combobox problem. chris[_7_] Excel Programming 1 October 20th 03 06:32 PM
ComboBox Problem Tressa Excel Programming 2 August 27th 03 08:58 PM


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