+ Reply to Thread
Results 1 to 3 of 3

VBA for shifting blank cells up

  1. #1
    Registered User
    Join Date
    10-23-2012
    Location
    Lithuania
    MS-Off Ver
    Excel 2011
    Posts
    2

    VBA for shifting blank cells up

    Hi,

    I hope you can help me. I have a very simple task to shift all the blank cells up. I've recorded a macro by Go to -> special -> blanks.
    Then delete -> shift cell up. The macro looks like this (see below).

    The problem is it does me the job for 300 rows, but my file contains 85.000 rows. And when I select them and execute this macro the workbook remains absolutely empty.

    When I try to do Go to -> special -> blanks for 85.000 rows Excel gives me an error "Selection is too large".

    many thanks!

    Please Login or Register  to view this content.
    Moderator Note:

    Pls use code tags around your code.
    Last edited by Fotis1991; 06-25-2015 at 05:43 AM.

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: VBA for shifting blank cells up

    Here is the probable explanation

    This happens in Excel 2007, and earlier versions, because there is a limit of 8192 separate areas that the special cells feature can handle. (This problem has been fixed in Excel 2010.) There are details on Ron de Bruin's website: SpecialCells Limit Problem.
    http://blog.contextures.com/archives...-is-too-large/
    Cheers!
    Deep Dave

  3. #3
    Registered User
    Join Date
    10-23-2012
    Location
    Lithuania
    MS-Off Ver
    Excel 2011
    Posts
    2

    Re: VBA for shifting blank cells up

    Thank you. I should have mentioned that I am using Excel for Mac. It works on Office for Windows. But it takes a noticeable amount of time.

+ 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. Shifting Cells
    By KristenL in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-05-2014, 04:42 PM
  2. Shifting....cells
    By brjohnsmith in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-07-2014, 02:46 PM
  3. Shifting data to another sheet without blank cells
    By Mak2145 in forum Excel General
    Replies: 3
    Last Post: 06-18-2011, 02:54 AM
  4. Shifting Cells to the Right
    By tomwest in forum Excel General
    Replies: 1
    Last Post: 04-09-2010, 06:48 AM
  5. [SOLVED] Delete blank calls in row, shifting left
    By Steph in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-01-2005, 03:05 PM

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