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 on sheet

My code ends as follows.

Range(Cells(1, 2)).Select ' cell on which
combobox is positioned
ActiveCombo.AddItem "'Free Type' Entry"
ActiveSheet.ComboNAME.DropDown
End

if i move mouse over items in list, they are selected, but if i use arrow
keys the cell selection moves
What i need is for the arrow key to work when combobox is dropped down and
activecell to move when combobox is close.

Can someone help please





  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,510
Default combobox on sheet

The reason that moving the cursor changes the cell is because the cell is
active not the combo box. when you click in the combo box then the combo
becomes active.

If you want the combo box to drop down try using the GotFocus event as below
then when the user clicks in the combo it will automatically dropdown and you
can use the arrows or the mouse to select.

If you want a specific cell selected after you have made the combo box
selection then you can use the combo change event or maybe lostfocus.

Private Sub ComboName_GotFocus()
ComboName.DropDown
End Sub


Private Sub ComboName_Change()
Cells(1, 2).Select
End Sub

--
Regards,

OssieMac


"sunilpatel" wrote:

My code ends as follows.

Range(Cells(1, 2)).Select ' cell on which
combobox is positioned
ActiveCombo.AddItem "'Free Type' Entry"
ActiveSheet.ComboNAME.DropDown
End

if i move mouse over items in list, they are selected, but if i use arrow
keys the cell selection moves
What i need is for the arrow key to work when combobox is dropped down and
activecell to move when combobox is close.

Can someone help please






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
RowSource for Sheet ComboBox Minitman Excel Worksheet Functions 3 March 24th 08 09:43 PM
How do I put hyperlinks to another sheet in a combobox? Meinarsson Excel Discussion (Misc queries) 0 July 25th 07 03:04 PM
Sheet combobox help IT_roofer Excel Worksheet Functions 2 May 15th 07 05:16 PM
ComboBox on a Sheet [email protected] Excel Programming 3 January 31st 06 02:21 PM
combobox/copying sheet joe smith Excel Discussion (Misc queries) 2 March 29th 05 03:55 PM


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