I am receiving type mismatch error when I use below mentioned code.If possible please help to resolve below mentioned code error.Both AP# and AR3 have charactor values.
What my basic requirment is use function just like concatenate function to add two charactor values from two cell in one excel cell using vba code
Range("AI3:AI" & lrv + 2).Value = Range("AP3:AP" & lrv + 2).Value & " " & Range("AR3:AR" & lrv + 2).Value
You are getting a mismatch error because this is an incorrect way of assigning values. For example, this is incorrect
You are working with array. So try this
So your code becomes
Or in a more simplified manner