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
 

Some videos you may like

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

sykes

Well-known Member
Joined
May 1, 2002
Messages
1,773
Office Version
  1. 365
Platform
  1. Windows
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...
 

Watch MrExcel Video

Forum statistics

Threads
1,122,521
Messages
5,596,652
Members
414,083
Latest member
Mrsash

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
Top