Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 57
Default combobox problem

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
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 Rbp9ad[_2_] Excel Programming 2 November 4th 05 10:05 PM
ComboBox Problem R Avery Excel Programming 4 August 3rd 04 06:24 PM
Combobox Problem Tom Ogilvy Excel Programming 0 July 27th 04 06:38 PM
ComboBox Problem Tressa Excel Programming 2 August 27th 03 08:58 PM


All times are GMT +1. The time now is 06:47 PM.

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"