Anyone can help me correct on below code:
i need the answer in row 4
Untitled.jpg
Dim lastcol As Long
lastcol = Cells(Columns.Count, "xfd").End(xlToLeft).Column
Range("a4:XFD" & lastcol).FormulaR1C1 = "=R[-3]C+R[-2]C"
Anyone can help me correct on below code:
i need the answer in row 4
Untitled.jpg
Dim lastcol As Long
lastcol = Cells(Columns.Count, "xfd").End(xlToLeft).Column
Range("a4:XFD" & lastcol).FormulaR1C1 = "=R[-3]C+R[-2]C"
bhchang84,
I would use the Intersect method, like so:
Please Login or Register to view this content.
Hope that helps,
~tigeravatar
Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks