General Ledger
Active Member
- Joined
- Dec 31, 2007
- Messages
- 460
Dear All,
How do I get a space to appear between the two concatenated values?
The two variables are cell addresses:
CustNameReference = $A$1 = John Smith
InvoiceReference = $B$1 = 123
When I execute the code
I want the formula in C1 to appear like =$A$1&" "&$B$1
so the result is John Smith 123.
As it is now, the result is John Smith123 (no space between the name and invoice).
Thanks,
GL
How do I get a space to appear between the two concatenated values?
Code:
LineText = "=" & CustNameReference & InvoiceReference
The two variables are cell addresses:
CustNameReference = $A$1 = John Smith
InvoiceReference = $B$1 = 123
When I execute the code
Code:
Range("C1") = LineText
I want the formula in C1 to appear like =$A$1&" "&$B$1
so the result is John Smith 123.
As it is now, the result is John Smith123 (no space between the name and invoice).
Thanks,
GL