Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am using this code to find the current cell that matches the current date.
All works fine except I want to also have the current cell go to the top of the window under the frozen headings. How can I alter the code to do this. Dim SubStr Dim MyCell As Range Dim NextRow As Range Sheets("Food").Select Cells.Select Selection.Columns.AutoFit Range("A2:E2").Select SubStr = Date Call NxtRow(SubStr, MyCell, NextRow) NextRow.Select End Sub Sub NxtRow(SubStr, MyCell, NextRow) ' Cells.Select Set MyCell = ActiveSheet.Range("A4") Do If MyCell.Value = "" Then Exit Do ElseIf MyCell.Value = SubStr Then Set NextRow = MyCell Exit Do Else Set MyCell = MyCell.Offset(1, 0) End If Loop End Sub -- Rick Rack |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
rows 4-15 will not scroll | Excel Worksheet Functions | |||
I can not move or scroll to the top rows (7 to 1) | Excel Discussion (Misc queries) | |||
Highlight entire rows as I scroll? | Excel Discussion (Misc queries) | |||
The top six rows are "frozen" and do not move when I scroll down.. | Excel Worksheet Functions | |||
Scroll the window to the top - frozen rows | Excel Programming |