concatenate with vba
Thanx Steve, it worked
One more question. How do I remove the last character of var2
variable?
For instance:
var1 has Justin
var2 has Kemp,
I need only Justin Kemp after concatenation.
Thanx
On Jul 2, 8:42 pm, steve_doc
wrote:
maybe not the ideal way, but
Declare 2 variables
Set Var1 = ActiveCell.Offset(0,-2)
Set VAr2 = ActiveCell.Offset(0,-3)
Sheets("Exrtract").Range("A" & ERow) = Var1 & Var2
HTH
"Maxi" wrote:
Hi!
I have first name in A1 and last name in A2
When I use the syntax
Sheets("Extract").Range("A" & ERow).Value = ActiveCell.Offset(0,
-2).Value & ActiveCell.Offset(0, -3).Value
Value of ERow is 1
Offset -2 is the first name
Offset -3 is the last name
VBA does not support "&" to get both the names in one cell of a
different sheet?
Please help- Hide quoted text -
- Show quoted text -
|