+ Reply to Thread
Results 1 to 4 of 4

Delete all cells in each row except the last used cell then shift left all remaining data

  1. #1
    Registered User
    Join Date
    10-21-2014
    Location
    Portsmouth,England
    MS-Off Ver
    2013
    Posts
    4

    Delete all cells in each row except the last used cell then shift left all remaining data

    Hi,
    I'm trying to write a script that deletes all cells in a row except the last used cell, then shift left all data to the first column.
    This then proceeds to the next row until all rows with data have been actioned.

    See below for a better explination:

    Please Login or Register  to view this content.

    Thank you

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Delete all cells in each row except the last used cell then shift left all remaining d

    Hi Dave,
    Welcome to the forum.

    See if this helps...
    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Registered User
    Join Date
    10-21-2014
    Location
    Portsmouth,England
    MS-Off Ver
    2013
    Posts
    4

    Re: Delete all cells in each row except the last used cell then shift left all remaining d

    Hello sktneer

    Thank you the above code works exactly as I required.

    Many Thanks,

    Dave.

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Delete all cells in each row except the last used cell then shift left all remaining d

    You're welcome Dave. Glad I could help. And thanks for the feedback as well.

+ 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. go through a range and delete, shift cells left if contain no data.
    By 13lack13lade in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-25-2014, 09:50 PM
  2. Delete cells if blank, shift left until data found
    By wishkey in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-04-2013, 08:22 PM
  3. Macro to Remove Cells = 0 and Shift Remaining Cells on Row Left w/ One Condition
    By Mark V. in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-07-2013, 12:45 PM
  4. delete blank cells and shift data left
    By rhudgins in forum Excel General
    Replies: 7
    Last Post: 07-30-2010, 11:16 PM
  5. 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

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