sebosedszuk
Programmer
Sub abc()
Worksheets(Array("sheet1", "sheet2", "sheet3")).Select
With Worksheets("sheet1").Range("A1:A200")
finalrow = Cells(Rows.Count, 1).End(xlUp).Row
MsgBox "final row" & finalrow
End With
Worksheets(Array("sheet2")).Select
With Worksheets("sheet2").Range("A1:A200")
finalrow = Cells(Rows.Count, 1).End(xlUp).Row
MsgBox "final row" & finalrow
End With
End Sub
'Hello,
' Sheet1 has 6 rows, Sheet2 has 10 rows,
' but the program says 6 rows for both Sheets??
'Regards,
' Gabor
Worksheets(Array("sheet1", "sheet2", "sheet3")).Select
With Worksheets("sheet1").Range("A1:A200")
finalrow = Cells(Rows.Count, 1).End(xlUp).Row
MsgBox "final row" & finalrow
End With
Worksheets(Array("sheet2")).Select
With Worksheets("sheet2").Range("A1:A200")
finalrow = Cells(Rows.Count, 1).End(xlUp).Row
MsgBox "final row" & finalrow
End With
End Sub
'Hello,
' Sheet1 has 6 rows, Sheet2 has 10 rows,
' but the program says 6 rows for both Sheets??
'Regards,
' Gabor