Hi, I’m using Excel 2007, and wish to find the last row in data sheet “Main”, and put text “END” in column A of that last cell. The complication is not all columns always have data.
I’ve tried;
Sub LastRowTest ()
LastRowColA = Range("A65536").End(xlUp).Row<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
ActiveCell.FormulaR1C1 = "text"<o></o>
End sub<o></o>
======================================================<o></o>
And I also tried;<o></o>
Sub LastRowTest ()
Dim ws As Worksheet<o></o>
Set ws = Worksheets("Main")<o></o>
<o></o>
iRow = ws.Cells(Rows.Count, 1) _<o></o>
.End(xlUp).Offset(1, 0).Row<o></o>
'ActiveSheet.Paste 'ActiveSheet.PasteActiveCell.FormulaR1C1 = "text"<o></o>
End sub<o></o>
<o></o>
NO LUCK… Anyone have an answer?
Thanks!
I’ve tried;
Sub LastRowTest ()
LastRowColA = Range("A65536").End(xlUp).Row<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
ActiveCell.FormulaR1C1 = "text"<o></o>
End sub<o></o>
======================================================<o></o>
And I also tried;<o></o>
Sub LastRowTest ()
Dim ws As Worksheet<o></o>
Set ws = Worksheets("Main")<o></o>
<o></o>
iRow = ws.Cells(Rows.Count, 1) _<o></o>
.End(xlUp).Offset(1, 0).Row<o></o>
'ActiveSheet.Paste 'ActiveSheet.PasteActiveCell.FormulaR1C1 = "text"<o></o>
End sub<o></o>
<o></o>
NO LUCK… Anyone have an answer?
Thanks!