Scroll bar problems / Absurd amount of rows showing up out of nowhere. Please Help!

harrisondebord

New Member
Joined
May 31, 2012
Messages
9
Hey there Mr. Excel board,
This spreadsheet that I have been working on is up to about 1100 rows. Today, suddenly a ludicrous amount of rows appeared at the bottom of my spreadsheet- (All the way up to Row # 1,048,576!)
As a result of this, my scroll bar on the right-hand side of my excel program has become very small and if i move it, even a shmidgen, to navigate through my workbook, It jumps down about 10,000 rows. :eeek:

How can I fix this problem?
Help please! :confused:

Thank you,
Harrison
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Does running the ExcelDiet clean it up at all?
Code in a std module. Obviously make a copy of your data before running

Code:
Sub ExcelDiet()


    Dim x As Integer
    Dim LastRow As Long
    Dim LastCol As Integer


    Application.ScreenUpdating = False


    On Error Resume Next


    With ActiveSheet
        LastRow = Cells.Find(What:="", After:=Range("A1"), LookIn:=xlValues, _
                             LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
        LastCol = Cells.Find(What:="", After:=Range("A1"), LookIn:=xlValues, _
                             LookAt:=xlPart, SearchOrder:=xlByColumns, SearchDirection:=xlPrevious).Column
        'Range(Cells(1, LastCol + 1), Cells(65536, 256)).Delete    '97-2003
        'Range(Cells(LastRow + 1, 1), Cells(65536, 256)).Delete    '97-2003
         
        Range(Cells(1, LastCol + 1), Cells(1048576, 16384)).Delete    '2007/10
        Range(Cells(LastRow + 1, 1), Cells(1048576, 16384)).Delete    '2007/10
        On Error GoTo 0
    End With
    Application.ScreenUpdating = True
End Sub
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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