Results 1 to 2 of 2
  1. #1
    dennis_hartley
    Guest

    Super large sheet

    Here's a problem I've had occasionally with users.
    Smallish spreadsheet. Excel then decides that it end at a cell miles outside of the actual

  2. #2
    WS Lounge VIP rory's Avatar
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    6,280
    Thanks
    3
    Thanked 191 Times in 177 Posts

    Re: Super large sheet

    Hi Dennis,
    I use the following two macros (this happens to me a lot with stuff I get sent) to remove excess unused rows and columns:
    Sub ResetUsedRangeRows()
    With ActiveSheet
    .Range(Selection, ActiveCell.SpecialCells(xlLastCell)).EntireRow.Del ete
    .UsedRange
    End With
    End Sub
    Sub ResetUsedRangeColumns()
    With ActiveSheet
    .Range(Selection, ActiveCell.SpecialCells(xlLastCell)).EntireColumn. Delete
    .UsedRange
    End With
    End Sub
    When using them you need to select either the row below the last used row (for row delete) or the column to the right of the last used column (for column delete)
    Hope that helps.
    Regards,
    Rory

    Microsoft MVP - Excel

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •