With the below code, I am able to find last active cell of column E (i.e. E7) and then offset a row (E8). Now what I need is from cell E9 to E12, I need to update as "LED".
The range can vary every time. I have also attached spreadsheet for your workings.
Update values till the last active cell of column
-
-
-
Re: Update values till the last active cell of column
Thanks. This works if the range is fixed (E9 to E12). If the range varies every time how do I do that ?
-
Re: Update values till the last active cell of column
I can't see how you think that is an absolute reference, it's relative to the active cell as set in the first 2 lines of your code...
Your procedure re-written
CodeSub test() Range("E" & Cells.Rows.Count).End(xlUp).Select ActiveCell.Offset(1, 0).Select Activecell.Offset(1).Resize(4).Value = "LED" End Sub
Or, shortened to the Nth degree
-
-
-
Re: Update values till the last active cell of column
Thank you jindon, it works perfectly.
Thank you cytop for your response.
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!