How do I Copy the data from 3 separate combo boxes to 3 cells in Excel?

andymalan

Board Regular
Joined
Feb 22, 2017
Messages
128
Office Version
  1. 365
  2. 2007
Platform
  1. Windows
How do I Copy the data from 3 separate combo boxes to 3 cells in Excel?

I have 3 combo boxes on a user form, comboBoxFrame, comboBoxPanel, comboBoxEdging.
comboBoxFrame is populated with a list of solid timber,

comboBoxPanel is populated with sheet material,

comboBoxEdging is populated with edging material.

I also have a command button to save the selections.

I want to make the selections from the 3 combo boxes, then click the “save selection” button and the selections are to be copied to sheet(“material”)
comboBoxFrame, to cell N2
comboBoxPanel, to cell O2
comboBoxEdging. to cell P2

The code I have cobbled together as follows, does not work.

Private Sub ComboBoxEdging_Change()
Sheets("Material").Select
Range("P2").Select
ActiveSheet.Paste
End Sub

Private Sub ComboBoxFrame_Change()
Sheets("Material").Select
Range("N2").Select
ActiveSheet.Paste
End Sub

Private Sub ComboBoxPanel_Change()
Sheets("Material").Select
Range("O2").Select
ActiveSheet.Paste
End Sub


Your expertise will be greatly appreciated by this greenhorn (me) who is totally new but keen to learn.
best regards, Andy Malan
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Try
Code:
Private Sub ComboBoxEdging_Change()
Sheets("Material").Range("P2").Value = Me.ComboBoxEdging.Value
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,710
Messages
6,174,019
Members
452,542
Latest member
Bricklin

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