How to copy combobox value to active cell in excel worksheet Automaticaly vba

Thanks for help . I Make a userform with combobox and make the row source but

How do I get the highlight value from my combobox to active cell in excel worksheet automatically.

Using Excel 2003.

Pls.help me

thanks

[526 byte] By [abkarino] at [2008-1-10]
# 1
Hi,

The ControlSource property should store the selected Item on the worksheet.
So for example

RowSource = A1:A10
ControlSource = B1

AndyPope at 2007-10-3 > top of Msdn Tech,Microsoft ISV Community Center Forums,Visual Basic for Applications (VBA)...
# 2

First Thanks for reply I know that information.

But I need to make the active cell in the active sheet Is The control source for the combobox.

Say Im open my excel file and the combobox is showing

my combobox dragbhavior=2 enabled

I want to

If I select Item From Combobox it will be the active cell value automaticaly

that mean the active cell value = the highlight value in my combobox after selection

my controlsource that i need is The active cell not a detrimine cell Like B1

I think i need to code for that or macro to post value.

thanks
abkarino at 2007-10-3 > top of Msdn Tech,Microsoft ISV Community Center Forums,Visual Basic for Applications (VBA)...
# 3
Sorry I'm confused now.

Comboboxes have a Dragbehavoir property which is either 0 or 1, so not sure what 2 is or does.
fmDragBehaviorDisabled 0 Does not allow a drag-and-drop action (default).
fmDragBehaviorEnabled 1 Allows a drag-and-drop action.

If you want to change the ControlSource property you can,

cmbBuMs.ControlSource = Activecell.address

AndyPope at 2007-10-3 > top of Msdn Tech,Microsoft ISV Community Center Forums,Visual Basic for Applications (VBA)...
# 4

Hey,

Try this…

Private Sub ComboBox1_Change()
ActiveCell.Value = ComboBox1.Value
End Sub

Best Regards

Cathrine

MyLady at 2007-10-3 > top of Msdn Tech,Microsoft ISV Community Center Forums,Visual Basic for Applications (VBA)...
# 5

thank u

It was to mutch helpful.

Fawzy
abkarino at 2007-10-3 > top of Msdn Tech,Microsoft ISV Community Center Forums,Visual Basic for Applications (VBA)...