ipbr21054
Well-known Member
- Joined
- Nov 16, 2010
- Messages
- 5,226
- Office Version
- 2007
- Platform
- Windows
Morning,
This code supplied below is situted in ThisWorkBook & covers each worksheet within ithat workbook & works fine.
I would like to use the same code BUT in another workbook but only for the worksheet called INCOME
Please advise how it can be editied so it works only for the worksheet mentioned above & not the other worksheet in that workbook.
This code supplied below is situted in ThisWorkBook & covers each worksheet within ithat workbook & works fine.
I would like to use the same code BUT in another workbook but only for the worksheet called INCOME
Please advise how it can be editied so it works only for the worksheet mentioned above & not the other worksheet in that workbook.
SQL:
Private Sub Workbook_SheetActivate(ByVal Sh As Object)
Dim i As Long
Sh.Cells(3, "A").Select
For i = 28 To 4 Step -1
If Sh.Cells(i - 1, "A") <> "" Then
Sh.Cells(i, "A").Select
Exit For
End If
Next i
End Sub