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

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

sykes

Well-known Member
Joined
May 1, 2002
Messages
1,884
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...
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,279
Messages
5,836,363
Members
430,424
Latest member
ALHK022

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