PC Review


Reply
Thread Tools Rate Thread

combobox problem

 
 
sunilpatel
Guest
Posts: n/a
 
      20th Jul 2009
Hi all,

I have asked this before but cannot solve. Pleeeeeese help as months have
gone into this project and Excel crashes with data being lost !

Clicking on an object (picture), is used to make a combox visible and dot
dropdown is used in code to make the combobox list visible (ready for user
to select an item)
If a selection is made all is well, however if while the list is down, if
the user changes sheets (or clicks another object linked to a macro that
changes sheets), the combobox dissapers BUT the dropdownlist does not. It is
still visible on the screen eventhough the new sheet is now active.

the code below shows the effect, ie sheet1 has the combox (created using
control toolbox)

In short how can you make the combobox and dropdown list dissapear before
the sheet change takes effect.

Sub combodrop()
With ActiveSheet.ComboBox1
.Visible = True
.Clear
.AddItem "Test 1"
.AddItem "Test 2"
.AddItem "Test 3"
.DropDown
Sheets("Sheet2").Select '(this is what the user would in effect do)
End With
End Sub

Sunil


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access Problem: Combobox.setfocus fires combobox.OnClick event Hal Levy Microsoft Access Form Coding 5 31st Jul 2009 03:54 AM
ComboBox Problem Ilidio Pedrosa Microsoft Access Forms 0 18th Jan 2008 04:36 PM
problem with combobox Dominique Vandensteen Microsoft VB .NET 3 3rd Feb 2004 12:19 PM
combobox problem drishtik Microsoft C# .NET 2 18th Sep 2003 03:54 PM
ComboBox Problem Tressa Microsoft Excel Programming 2 27th Aug 2003 08:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:48 AM.