Code to send combo box value to a cell

daniels012

Well-known Member
Joined
Jan 13, 2005
Messages
5,219
Is there code i can write to send the combo box (Control Toolbox toolbar) value to the cell originally chosen.

I select an option button which enters my data into a combo box, then I would like to enter that data into the original cell as well as sending the data in R4 to the cell to the right of the active cell.



Thank You,
Michael
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Hi Michael

Could you explain a little further what you mean by "originally chosen".....
Is there code i can write to send the combo box (Control Toolbox toolbar) value to the cell originally chosen.
............ and also, as long as you're working on the same sheet all the time, this should do the second part of your question:
Code:
Sub move_data()
ActiveCell.Offset(0, 1).Value = [R4].Value
End Sub
Obviously you'd probably just want to incorporate the one line into your other code, so that it all happens in one go...
 
Upvote 0

Forum statistics

Threads
1,214,980
Messages
6,122,563
Members
449,088
Latest member
Motoracer88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top