SanjayGMusafir
Well-known Member
- Joined
- Sep 7, 2018
- Messages
- 1,503
- Office Version
- 2021
- Platform
- MacOS
In most of my Excel sheets, I use Freeze Panes. And to keep my work visibly tidy, I hide rows.
Now, I have VBA to reach First Cell after Frozen Pane. And also, VBA for ignoring Hidden Rows. But when I combine both to reach First Visible Cell - It takes a lot of time.
I strongly believe that there must be a better way of doing things than I'm doing right now. So Please help me with a refined and faster way to get the intended results. Thanks
The code I'm using right now is as under -
Cells(ActiveWindow.SplitRow + 1, ActiveWindow.SplitColumn + 1).Select
Do Until Selection.EntireRow.Hidden = False
If Selection.EntireRow.Hidden = True Then
ActiveCell.Offset(1, 0).Activate
End If
Loop
Now, I have VBA to reach First Cell after Frozen Pane. And also, VBA for ignoring Hidden Rows. But when I combine both to reach First Visible Cell - It takes a lot of time.
I strongly believe that there must be a better way of doing things than I'm doing right now. So Please help me with a refined and faster way to get the intended results. Thanks
The code I'm using right now is as under -
Cells(ActiveWindow.SplitRow + 1, ActiveWindow.SplitColumn + 1).Select
Do Until Selection.EntireRow.Hidden = False
If Selection.EntireRow.Hidden = True Then
ActiveCell.Offset(1, 0).Activate
End If
Loop