SOLVED

Vertical Scroll encompasses a million rows, most of which are blank

%3CLINGO-SUB%20id%3D%22lingo-sub-1623582%22%20slang%3D%22en-US%22%3EVertical%20Scroll%20encompasses%20a%20million%20rows%2C%20most%20of%20which%20are%20blank%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1623582%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EI%20have%20about%201400%20rows%20with%20data%2C%20about%201000%20of%20which%20are%20hidden%20most%20of%20the%20time.%26nbsp%3B%20If%20I%20pull%20the%20vertical%20scroll%20box%20to%20the%20bottom%20of%20the%20vertical%20scroll%20space%2C%20it%20gets%20to%20Row%20400%2C000%20-%20or%20more.%26nbsp%3B%20(Sometimes%20it%20gets%20beyond%20Row%201%2C000%2C000.)%26nbsp%3B%20For%20this%20reason%2C%20if%20I%20move%20the%20vertical%20scroll%20box%20just%20a%20little%2C%20it%20still%20scrolls%20down%20thousands%20of%20rows.%26nbsp%3B%20I%20would%20like%20the%20vertical%20scroll%20space%20to%20reflect%20my%20USED%20unhidden%20rows%2C%20not%20the%20entirety%20of%20possible%20rows.%26nbsp%3B%20That%20way%20I%20can%20move%20the%20vertical%20scroll%20bar%20box%20more%20effectively.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20case%20it%20matters%2C%20I%20have%20only%20about%20a%20dozen%20columns%20with%20data.%26nbsp%3B%20I%20use%20the%20spreadsheet%20in%20SharePoint%2C%20but%20it%20does%20the%20same%20thing%20even%20when%20I%20save%20it%20and%20use%20it%20as%20a%20freestanding%20Excel%20worksheet.%26nbsp%3B%20I%20tried%20to%20delete%20rows%20in%20case%20there%20is%20some%20errant%20data%20way%20down%20there%2C%20but%20I%20can't%20delete%20a%20million%20rows%2C%20at%20least%20I%20don't%20know%20how%20to%20do%20that%20without%20spending%20hours%20at%20it.%3C%2FP%3E%3CP%3EAny%20suggestions%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1623582%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1623663%22%20slang%3D%22en-US%22%3ERe%3A%20Vertical%20Scroll%20encompasses%20a%20million%20rows%2C%20most%20of%20which%20are%20blank%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1623663%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F777144%22%20target%3D%22_blank%22%3E%40Tracy7212%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDo%20the%20following%20in%20the%20desktop%20version%20of%20Excel.%3C%2FP%3E%0A%3CP%3ESelect%20the%20first%20entirely%20blank%20row%20by%20clicking%20on%20its%20row%20number.%3C%2FP%3E%0A%3CP%3EHold%20down%20Shift%20and%20drag%20the%20'thumb'%20of%20the%20vertical%20scroll%20bar%20down%20until%20you%20see%20row%201048576.%3C%2FP%3E%0A%3CP%3EHold%20down%20Shift%20and%20click%20on%20the%20row%20number%20of%20row%201048576.%3C%2FP%3E%0A%3CP%3EThis%20will%20select%20everything%20from%20the%20first%20blank%20row%20to%20the%20bottom%20of%20the%20worksheet.%3C%2FP%3E%0A%3CP%3EOn%20the%20Home%20tab%20of%20the%20ribbon%2C%20click%20Clear%20%26gt%3B%20Clear%20All.%3C%2FP%3E%0A%3CP%3EPress%20Alt%2BF11%20to%20activate%20the%20Visual%20Basic%20Editor.%3C%2FP%3E%0A%3CP%3EPress%20Ctrl%2BG%20to%20activate%20the%20Immediate%20window.%3C%2FP%3E%0A%3CP%3EType%20%3CSTRONG%3EActiveSheet.UsedRange%3C%2FSTRONG%3E%20and%20press%20Enter.%3C%2FP%3E%0A%3CP%3ESwitch%20back%20to%20Excel%20and%20save%20the%20workbook.%3C%2FP%3E%0A%3CP%3EDoes%20the%20vertical%20scroll%20bar%20now%20act%20normally%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1623878%22%20slang%3D%22en-US%22%3ERe%3A%20Vertical%20Scroll%20encompasses%20a%20million%20rows%2C%20most%20of%20which%20are%20blank%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1623878%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F127945%22%20target%3D%22_blank%22%3E%40Hans%20Vogelaar%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20worked%20PERFECTLY.%26nbsp%3B%20Thank%20you%20so%20much!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hello,

I have about 1400 rows with data, about 1000 of which are hidden most of the time.  If I pull the vertical scroll box to the bottom of the vertical scroll space, it gets to Row 400,000 - or more.  (Sometimes it gets beyond Row 1,000,000.)  For this reason, if I move the vertical scroll box just a little, it still scrolls down thousands of rows.  I would like the vertical scroll space to reflect my USED unhidden rows, not the entirety of possible rows.  That way I can move the vertical scroll bar box more effectively.  

In case it matters, I have only about a dozen columns with data.  I use the spreadsheet in SharePoint, but it does the same thing even when I save it and use it as a freestanding Excel worksheet.  I tried to delete rows in case there is some errant data way down there, but I can't delete a million rows, at least I don't know how to do that without spending hours at it.

Any suggestions?

2 Replies
Highlighted
Best Response confirmed by Tracy7212 (New Contributor)
Solution

@Tracy7212 

Do the following in the desktop version of Excel.

Select the first entirely blank row by clicking on its row number.

Hold down Shift and drag the 'thumb' of the vertical scroll bar down until you see row 1048576.

Hold down Shift and click on the row number of row 1048576.

This will select everything from the first blank row to the bottom of the worksheet.

On the Home tab of the ribbon, click Clear > Clear All.

Press Alt+F11 to activate the Visual Basic Editor.

Press Ctrl+G to activate the Immediate window.

Type ActiveSheet.UsedRange and press Enter.

Switch back to Excel and save the workbook.

Does the vertical scroll bar now act normally?

Highlighted

@Hans Vogelaar 

 

It worked PERFECTLY.  Thank you so much!