+ Reply to Thread
Results 1 to 4 of 4

Delete empty cells and shifting to the left.

  1. #1
    Registered User
    Join Date
    03-04-2014
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    2

    Delete empty cells and shifting to the left.

    I only have a very basic knowledge of Excel but how can I delete empty cells and shift them to the left?

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Delete empty cells and shifting to the left.

    Hi G,

    Welcome to the Forum - try this:

    Please Login or Register  to view this content.
    Directions for running the routine(s) just supplied

    Copy the code to the clipboard

    Open your Workbook

    Save your Workbook or Another Workbook designated for Macros as Macro_Enabled

    Press ALT + F11 to open the Visual Basic Editor.

    Select “Module” from the Insert menu

    Type "Option Explicit" then paste the code under it

    With the cursor between Sub and End Sub press F5 (F8 to Single Step)

    OR

    Press ALT + Q to close the code window.

    Press ALT + F8 then double click on the macro name
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    03-04-2014
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Delete empty cells and shifting to the left.

    Where do I type this?

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Delete empty cells and shifting to the left.

    Hi G,

    You can change (see in red) to whatever address you want to delete or you can do it to the active cell:

    Please Login or Register  to view this content.
    Or

    Please Login or Register  to view this content.
    Or if you want the program to choose which ones to delete:

    Please Login or Register  to view this content.

+ 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 empty cells, and shift left
    By kiboodez in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 07-25-2014, 07:53 AM
  2. Conditional Shifting Cells to the Left Macros
    By undergraduate in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-13-2011, 07:25 AM
  3. Deleting cells and shifting them left
    By knitterkuba in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 12-27-2010, 05:12 PM
  4. Delete empty cells and shift remaining left
    By kiboodez in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-25-2010, 02:17 PM
  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