+ Reply to Thread
Results 1 to 4 of 4

VBA Delete all empty cells in between

  1. #1
    Registered User
    Join Date
    06-01-2013
    Location
    GVA
    MS-Off Ver
    Excel 2010
    Posts
    10

    VBA Delete all empty cells in between

    Hi all,

    I have a sheet that contains data from Column A to AF, although not all columns are filled.
    I would need to have a rather quick macro that deletes all empty cell (by shifting the cells on the left) line by line.

    Here is a template of what I have at the start, and what i'd need at the end result.

    START

    Capture.PNG


    END

    Capture1.PNG


    Not to forget this macro has to run on over 40k lines and columns from A to AZ
    So here is a little code I have been trying to make, but with no success.

    Please Login or Register  to view this content.
    Any help would be very welcome from you guys.

    Thank you very much...
    Last edited by FDibbins; 01-30-2015 at 11:36 AM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,913

    Re: Making a

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    06-01-2013
    Location
    GVA
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Making a

    Hi

    Sorry I have made mistakes, although I have used the CODE (#) tags.
    Could you please change the subject to : "VBA Delete all empty cells in between"

    Thank you.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: VBA Delete all empty cells in between

    Tite changed, as requested.

    For future reference, to change a Title on your post, click EDIT POST then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. [SOLVED] making dropdown list wider without making cell wider ???
    By wayneg in forum Excel General
    Replies: 16
    Last Post: 05-20-2021, 12:53 AM
  2. Making my way into VBA
    By AdamBecker in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 05-07-2013, 02:53 PM
  3. Making one row of many
    By Marcell in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-21-2012, 08:10 AM
  4. making a spreadsheet for student coursework making
    By spartan11chin in forum Excel General
    Replies: 17
    Last Post: 12-01-2009, 08:18 AM
  5. making changes
    By godsgirl in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-11-2006, 04:45 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