Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions,microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Using a ComboBox for Data Entry into a Cell

I have a comboBox control. Any time the user sets focus to a cell in column
L, I
want to move the comboBox over to that cell, have the comboBox selected on
the
value of that cell. Thus using the combo box for the cell's data entry.
Can someone
provide me with an example of this ?

1. I don't want to use the DropDown List, because you can't control the
font.
2. I don't want to copy and paste a combo box for each cell because if the
user
adds a row, the comboBox doesn't come along with it.

Many Thanks


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions,microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default Using a ComboBox for Data Entry into a Cell

Perhaps you could adapt the technique described he

http://www.contextures.com/xlDataVal11.html

which uses one combobox on a worksheet, to overlay cells with data
validation.

Jon Turner wrote:
I have a comboBox control. Any time the user sets focus to a cell in column
L, I
want to move the comboBox over to that cell, have the comboBox selected on
the
value of that cell. Thus using the combo box for the cell's data entry.
Can someone
provide me with an example of this ?

1. I don't want to use the DropDown List, because you can't control the
font.
2. I don't want to copy and paste a combo box for each cell because if the
user
adds a row, the comboBox doesn't come along with it.

Many Thanks




--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions,microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Using a ComboBox for Data Entry into a Cell

THAT's exactly what I am looking for.. Many, Many Thanks



"Debra Dalgleish" wrote in message
...
Perhaps you could adapt the technique described he

http://www.contextures.com/xlDataVal11.html

which uses one combobox on a worksheet, to overlay cells with data
validation.

Jon Turner wrote:
I have a comboBox control. Any time the user sets focus to a cell in
column L, I
want to move the comboBox over to that cell, have the comboBox selected
on the
value of that cell. Thus using the combo box for the cell's data entry.
Can someone
provide me with an example of this ?

1. I don't want to use the DropDown List, because you can't control the
font.
2. I don't want to copy and paste a combo box for each cell because if
the user
adds a row, the comboBox doesn't come along with it.

Many Thanks



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions,microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default Using a ComboBox for Data Entry into a Cell

You're welcome. Thanks for letting me know that it helped.

Jon Turner wrote:
THAT's exactly what I am looking for.. Many, Many Thanks



"Debra Dalgleish" wrote in message
...

Perhaps you could adapt the technique described he

http://www.contextures.com/xlDataVal11.html

which uses one combobox on a worksheet, to overlay cells with data
validation.

Jon Turner wrote:

I have a comboBox control. Any time the user sets focus to a cell in
column L, I
want to move the comboBox over to that cell, have the comboBox selected
on the
value of that cell. Thus using the combo box for the cell's data entry.
Can someone
provide me with an example of this ?

1. I don't want to use the DropDown List, because you can't control the
font.
2. I don't want to copy and paste a combo box for each cell because if
the user
adds a row, the comboBox doesn't come along with it.

Many Thanks



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html






--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

  #5   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,163
Default Using a ComboBox for Data Entry into a Cell

This will move the combobox to the selected cell - it is an event procedure
so needs to be in the worksheet's code module (in the VBA Project Explorer
make sure the worksheet is selected):

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

If Not ((Intersect(Target, Range("L:L")) Is Nothing) And (Intersect(Target,
Range("I:I")) Is Nothing)) Then

ComboBox1.Top = Target.Top
ComboBox1.Left = Target.Left
Combobox1.Value = Target.Value

End If

End Sub


End Sub


"Jon Turner" wrote:

I have a comboBox control. Any time the user sets focus to a cell in column
L, I
want to move the comboBox over to that cell, have the comboBox selected on
the
value of that cell. Thus using the combo box for the cell's data entry.
Can someone
provide me with an example of this ?

1. I don't want to use the DropDown List, because you can't control the
font.
2. I don't want to copy and paste a combo box for each cell because if the
user
adds a row, the comboBox doesn't come along with it.

Many Thanks



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
Can I lock a cell after data entry so entry can not be changed Verlinde Excel Discussion (Misc queries) 3 April 22nd 10 07:59 PM
Control Data Entry - push entry to next cell Ofelia Excel Discussion (Misc queries) 0 July 7th 08 04:19 PM
Data Entry Online, Data Format, Data Conversion and Data EntryServices through Data Entry Outsourcing [email protected] Excel Discussion (Misc queries) 0 March 20th 08 12:45 PM
Cell Entry That Locks Selected Cells From Any Data Entry. ron Excel Worksheet Functions 5 February 16th 07 09:52 PM
Using a ComboBox for Data Entry into a Cell Jon Turner Excel Worksheet Functions 4 May 27th 05 09:53 PM


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