beginvbaanalyst
Board Regular
- Joined
- Jan 28, 2020
- Messages
- 141
- Office Version
- 365
- Platform
- Windows
Hi Everyone,
I'm creating a concatenate for an unlimited range (1048558 rows) and thought I had this correct, but turns out it's not working for me.
The long that fails is Range(ArticleRows & AssortmentRows).FormulaR1C1 = "=CONCATENATE(RC[-2],""-"",RC[-1])"
I get an error of
What does this mean? Am I unable to do a concatenate like this?
Thank you for all the help this community has been giving me, you guys are amazing!
I'm creating a concatenate for an unlimited range (1048558 rows) and thought I had this correct, but turns out it's not working for me.
VBA Code:
Sub ConcatenateArticleAssortment()
Dim AssortmentRows As Long
Dim ArticleRows As Long
AssortmentRows = Range("B" & Rows.Count).End(xlUp).Row
ArticleRows = Range("A" & Rows.Count).End(xlUp).Row
Range(ArticleRows & AssortmentRows).FormulaR1C1 = "=CONCATENATE(RC[-2],""-"",RC[-1])"
End Sub
The long that fails is Range(ArticleRows & AssortmentRows).FormulaR1C1 = "=CONCATENATE(RC[-2],""-"",RC[-1])"
I get an error of
What does this mean? Am I unable to do a concatenate like this?
Thank you for all the help this community has been giving me, you guys are amazing!