+ Reply to Thread
Results 1 to 8 of 8

Move Values of a Column and Delete the Empty Column

  1. #1
    Forum Contributor
    Join Date
    06-29-2012
    Location
    Calgary CA
    MS-Off Ver
    Excel 2010
    Posts
    117

    Question Move Values of a Column and Delete the Empty Column

    Dear Gurus:

    I need a code to Move Values of a Column and Delete the Empty Column.

    Please see the attached "sheet1" and "How I want sheet1 to be" for better illustration.

    Pseudo Code:
    1, Move column B to the next available column within the same worksheet (In this case, it is column E).
    2, Delete the empty column B
    3, Repeat step 1-step 2 for all of the worksheets within the same work book


    Thank you and I am looking forward to your response,

    Chris

    Move Values of a Column and Delete the Empty Column.xlsx

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Move Values of a Column and Delete the Empty Column

    Are you trying to clear column B in each worksheet then?

  3. #3
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Move Values of a Column and Delete the Empty Column

    Try this:

    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Move Values of a Column and Delete the Empty Column

    Maybe:

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    06-29-2012
    Location
    Calgary CA
    MS-Off Ver
    Excel 2010
    Posts
    117

    Re: Move Values of a Column and Delete the Empty Column

    Quote Originally Posted by mehmetcik View Post
    Are you trying to clear column B in each worksheet then?
    Sorry for my delayed response. As described, column B should be deleted after shift. anyway I got some codes that work. Thanks!

  6. #6
    Forum Contributor
    Join Date
    06-29-2012
    Location
    Calgary CA
    MS-Off Ver
    Excel 2010
    Posts
    117

    Re: Move Values of a Column and Delete the Empty Column

    Great Code! Thank you stnkynts!

  7. #7
    Forum Contributor
    Join Date
    06-29-2012
    Location
    Calgary CA
    MS-Off Ver
    Excel 2010
    Posts
    117

    Re: Move Values of a Column and Delete the Empty Column

    Quote Originally Posted by stnkynts View Post
    Try this:

    Please Login or Register  to view this content.

    Great Code! Thank you stnkynts!

  8. #8
    Forum Contributor
    Join Date
    06-29-2012
    Location
    Calgary CA
    MS-Off Ver
    Excel 2010
    Posts
    117

    Re: Move Values of a Column and Delete the Empty Column

    Quote Originally Posted by JOHN H. DAVIS View Post
    Maybe:

    Please Login or Register  to view this content.

    Thank you John! The first code works just good!

+ 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] Need Help on set of column data move to different column & delete unwant col vba
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-29-2014, 11:05 PM
  2. Move formulas to another column then preserve values in 1st column
    By malanis in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-23-2014, 04:55 PM
  3. Move Column Data to Last Empty Column On Sheet
    By bdb1974 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-04-2010, 03:16 PM
  4. Sort Column, Delete Rows, Delete Column, Move Molumn, more inside?
    By motown in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-13-2008, 09:44 AM
  5. Replies: 1
    Last Post: 04-19-2006, 09:20 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