DougStroud
Well-known Member
- Joined
- Aug 16, 2005
- Messages
- 2,976
- Office Version
- 365
- Platform
- MacOS
I am trying an alternative method to place a value in the last used row offset 2 columns.
The first statement here works:
But I am trying to use a variable to locate the last used cell in col. A then offset it by two columns and place the value in that cell, which currently is C93.
This one fails, LI finds the last used row fine, but then the Range method fails. I tried using Cells.(LI but that failed too.
"
Thanks--
Doug
The first statement here works:
Code:
Cells(Rows.Count, 1).End(xlUp).Offset(, 2).Value = "Last-Item"
But I am trying to use a variable to locate the last used cell in col. A then offset it by two columns and place the value in that cell, which currently is C93.
This one fails, LI finds the last used row fine, but then the Range method fails. I tried using Cells.(LI but that failed too.
Code:
LI = Cells(Rows.Count, 1).End(xlUp) '.Offset(, 2)
Range(LI, 1).Offset(, 2).Value = "Last-Item
Thanks--
Doug