I'm using VBA to find the row under LastRow and then clear the selection.
![]()
Sub Macro2() Dim LastRow As Integer LastRow = Cells(Rows.Count, "A").End(xlUp).Row If LastRow = 0 Then LastRow = 1 Rows(LastRow + 1).Select Selection.ClearContents End Sub
The code works perfectly, but only on the current worksheet. Is it possible to do this on another worksheet without having to go to that worksheet and run another macro?
In this case it would be 'Sheet1 (2)'
Thanks!!
Bookmarks