We need to clarify some terms.
The excel file, the one with .xls extension, is called Workbook.
Each workbooks contain one or more pages, called Sheets. They are, by default, named as "Sheet1", "Sheet2", "Sheet3", etc.
So, what do you mean by
every page on sheets("Sheet1")
?
Here's a piece of code that does what I think you want. But I'm not sure if it is really what you want. (The code works by itself, no parameters or additions are required.)
Sub BottomLine()
Dim ws As Worksheet, LastCell As Range, LastRow As Long
For Each ws In ThisWorkbook.Sheets
Set LastCell = ws.Cells.Find("*", Cells(1,1), xlValues, xlPart, xlByRows, xlPrevious)
If Not LastCell Is Nothing Then
LastRow = LastCell.Row
Else
LastRow = 1
End If
With ws.Rows(LastRow).Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
Next
End Sub
HTH,
JImmy