+ Reply to Thread
Results 1 to 3 of 3

Delete empty rows - UsedRange - Not working

  1. #1
    Registered User
    Join Date
    01-30-2013
    Location
    Brussels
    MS-Off Ver
    Excel 2010
    Posts
    2

    Delete empty rows - UsedRange - Not working

    Hi all,

    Since a few weeks, I've the following problem : I can't reset anymore the "UsedRange" of my Excel worksheet.

    I've isolated the problem by exporting the problematic worksheet into a new workbook. In that sheet I've only one button and two used rows like here below illustrated.

    2017-06-12_08h38_36.png

    UsedRange should be $A$1:$B$3 but Excel doens't agree and mention that the last row is 56,714.

    I've used, I think, every thing : delete rows, entirerow.delete, clear, clearformat, ... Since years, I used a VBA "CompressWorksheet" code and that code doesn't work anymore.

    Damned !

    I've used Google a lot these last days "delete empty row", "reset UsedRange", ... but nothing works.

    Can somebody help please ? In attach, the demo worksheet.

    The VBA code is this one :

    Please Login or Register  to view this content.
    Thanks in advance for any tips, help, contribution, ...
    Attached Files Attached Files

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Delete empty rows - UsedRange - Not working

    Hi,

    Unhide the rows below 56714 and then run the code again.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Registered User
    Join Date
    01-30-2013
    Location
    Brussels
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Delete empty rows - UsedRange - Not working

    Damned !!! You're right ! Incredible, I've tried almost everything except that.

    I've just add the following line at the top of my VBA test code and it's working now.

    Please Login or Register  to view this content.
    Thanks a lot xlnitwit ! i've spent hours on that problem.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Delete all empty rows
    By a94andwi in forum Excel General
    Replies: 2
    Last Post: 09-28-2015, 04:58 PM
  2. Delete Empty Rows and empty columns from the word table
    By mvneema in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-25-2014, 10:51 AM
  3. copy paste usedrange data and delete duplicate rows
    By mani_bbc05 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-09-2013, 02:12 PM
  4. delete duplicate rows, delete empty rows
    By loade in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-03-2012, 05:42 AM
  5. how to delete empty rows
    By jgomez in forum Excel General
    Replies: 5
    Last Post: 03-09-2011, 11:47 AM
  6. Autofilter/delete empty rows is deleting non-empty rows!
    By oOarthurOo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-05-2010, 12:31 PM
  7. Delete Empty Rows
    By pegbol in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-08-2005, 12:14 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1