Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default ComboBox fill ActiveCell

Hi,
Is it possible to select from a drop down box list and it will enter the
selection in the active cell?
Would this command be entered in the Linked Cell property of the drop down
box, or written in a procedure?
I couldn't find anything in the archives of the forums for something like
this, but maybe I worded it wrong.
Thank you for your time.
Amy
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default ComboBox fill ActiveCell


In the worksheet code that the combobox exists in:

Option Explicit
Dim myCell As String

Private Sub ComboBox1_Change()
Range(myCell).Value = ComboBox1.Value
Range(myCell).Select
End Sub

Private Sub ComboBox1_GotFocus()
myCell = ActiveCell.Address
End Sub


--
Ikaabod
------------------------------------------------------------------------
Ikaabod's Profile: http://www.excelforum.com/member.php...o&userid=33371
View this thread: http://www.excelforum.com/showthread...hreadid=545237

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default ComboBox fill ActiveCell

in the Procedure

for a combobox from the control toolbar toolbox

Private Sub Combobox1_click()
if Combobox1.ListIndex < -1 then
ActiveCell.Value = Combobox1.value
end if
End sub

--
Regards,
Tom Ogilvy

"AMY Z." wrote:

Hi,
Is it possible to select from a drop down box list and it will enter the
selection in the active cell?
Would this command be entered in the Linked Cell property of the drop down
box, or written in a procedure?
I couldn't find anything in the archives of the forums for something like
this, but maybe I worded it wrong.
Thank you for your time.
Amy

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default ComboBox fill ActiveCell

Thank you for helping me. It works.
Amy

"AMY Z." wrote:

Hi,
Is it possible to select from a drop down box list and it will enter the
selection in the active cell?
Would this command be entered in the Linked Cell property of the drop down
box, or written in a procedure?
I couldn't find anything in the archives of the forums for something like
this, but maybe I worded it wrong.
Thank you for your time.
Amy

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
Fill a Combobox from a ROW? Rob[_5_] Excel Discussion (Misc queries) 4 January 15th 09 08:12 PM
fill combobox depending on selection from another combobox Adam Francis Excel Discussion (Misc queries) 2 July 24th 08 07:39 PM
Fill combobox from DLL JJ[_9_] Excel Programming 0 April 14th 06 10:02 AM
Fill combobox from specified range anb001[_5_] Excel Programming 4 June 24th 04 09:41 PM
Fill a combobox karibou Excel Programming 2 January 27th 04 04:13 PM


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