VBA to Move to a Row While Keeping a Few Rows Visible on Top

daveG777

New Member
Joined
May 2, 2019
Messages
30
Office Version
  1. 365
Platform
  1. Windows
When I use find or goto, the row I'm looking for stays on top.

I'd like to get to the row while leaving a few rows visible on top. For example, I tried using VBA to find some text in row 55, or to goto row 55, but I want to keep visible the three rows on top, 52-54.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Can you be more specific on how you are getting to row 55, for example?
 
Upvote 0
I just used Find to look for specific text in a cell. In this case, it was

Cells.Find(What:="Sam Davis", After:=ActiveCell, LookIn:=xlFormulas _
, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False).Activate
 
Upvote 0
I can't duplicate your situation. When I run the code from your last post, the found cell is in about the middle of the displayed rows on the sheet.
 
Upvote 0

Forum statistics

Threads
1,215,773
Messages
6,126,821
Members
449,340
Latest member
hpm23

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top