still learning
Well-known Member
- Joined
- Jan 15, 2010
- Messages
- 826
- Office Version
- 365
- Platform
- Windows
Hi,
I open a workbook and have a few worksheets
I can’t get this to work when I open a worksheet
It worked last month
I tried the following:
I used F5 to send the cursor to the range name “August” and it worked.
I used F8 starting on >>>> Private Sub…..and it worked
I ran this before opening the sheet ---and it didn’t work
When I open the sheet, the cursor is where it was when I save and close
Mike
I open a workbook and have a few worksheets
I can’t get this to work when I open a worksheet
It worked last month
I tried the following:
I used F5 to send the cursor to the range name “August” and it worked.
I used F8 starting on >>>> Private Sub…..and it worked
I ran this before opening the sheet ---and it didn’t work
VBA Code:
Sub enableevents()
Application.enableevents = True
End Sub
VBA Code:
Private Sub Worksheet_activate()
months
End Sub
Sub months()
On Error Resume Next
Application.Goto Reference:=Range(Format(Date, "mmmm")), Scroll:=True
ActiveCell.Offset(1, 0).Range("A1").Select
ActiveWindow.FreezePanes = True
Dim C As Range
Set C = Range("H1:H450").Find(Date)
If Not C Is Nothing Then C.Select
If ActiceCell.Row < 12 Then ActiveWindow.ScrollRow = ActiveCell.Row - 12
Selection.End(xlToLeft).Select
End Sub
Mike