+ Reply to Thread
Results 1 to 4 of 4

Macro to search column for blank cells & shift entire row right

  1. #1
    Registered User
    Join Date
    11-02-2008
    Location
    UK
    Posts
    2

    Macro to search column for blank cells & shift entire row right

    Hi,

    I am trying to write a macro to do the following:

    Search column "I" for blank cells. If one is found then all adjacent cells to the left in that row are shifted to the right by one. (in other words for that row cells A-H are shifted right to become cells B-I).

    Hope that is clear - Thanks in advance for any help!

    BirdS
    Last edited by VBA Noob; 11-02-2008 at 02:36 PM.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Does this work for you

    Please Login or Register  to view this content.
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    11-02-2008
    Location
    UK
    Posts
    2
    Perfect!

    many thanks

  4. #4
    Registered User
    Join Date
    06-12-2014
    Posts
    21

    Re: Macro to search column for blank cells & shift entire row right

    Hey I need a similar help. I am new to VBA. I am trying to search column D for empty cells. if it is empty then i want the row below it to move up and occupy the empty space but not the entire row to move up. more like 5 colums around the empty cell to move Is it possible?
    example.jpg


    This is an example of what i want to do. Could someone pls help me

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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