Adding VBA userform Combobox value to cell on different sheet...

RJSIGKITS

Board Regular
Joined
Apr 15, 2013
Messages
109
Hi Guys.

I know this is extremely remedial to be asking this on here, as I know it is ridiculously easy, but I just can't get it to work!

I have a Userform with a Combobox, and an 'Assign' command button... I simply want the value of the combobox to be added to cell 'F17' on sheet 'Client' when the command button is clicked...

Please put me out of my misery!
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
The only info you missed was the name of the combobox. Place this code in the click event of the Assign button and change the combobox name to whatever you have called it
Code:
Sheets("Client").Range("F17") = comboboxName
 
Upvote 0
Code:
Sheets("Client").Range("F17") = comboboxName
[/QUOTE]
Okay, so I genuinely can't see what was different in your line to what I had, but I copy and pasted yours in and it worked!

Thanks for your help!
 
Upvote 0
I don't know now, as I've pasted yours in place of it!
But that's why I keep looking at it, as I truly can't see what I did differently.. I'm going to write the line below, as I would without looking at yours now:
Code:
[COLOR=#333333]Sheets("Client").Range("F17") = cbxassign[/COLOR]
 
Upvote 0
In future, I'll post the line of code that I'm trying to use in my question, I think - that way, we'll be able to see what I was doing wrong.
 
Upvote 0

Forum statistics

Threads
1,214,411
Messages
6,119,356
Members
448,888
Latest member
Arle8907

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