Combine two inputs into one cell

Marcel2586

Registered User.
Local time
Today, 06:19
Joined
Mar 1, 2012
Messages
41
Hello,

How do i combine two results from a form into one cell.
What I want to do is this,
I have a form populated with a textbox named quantity, where I can fill in a number.
And I have a combobox named measurement with EA, Centimeter, Meter, Foot, Gram.
I like to combine the two results into one cell from column C without creating a temporary measurement cell.

So the result in column C reads 25 EA. or 10 Gram

I like to say thanks in advance.
 
Last edited:
I think you're looking for the concatenate function.
Code:
=Concatenate (cell address of the qty, cell address of the measure)

If you're writing this in a code module and you want to address the text box and combo control, then the VBA is as follows:
Code:
 yourVariable = txtQty.value & cboMeasure.value
 
Last edited:

Users who are viewing this thread

Back
Top Bottom