+ Reply to Thread
Results 1 to 7 of 7

I need macro for deleting blank cell along with another one cell.

  1. #1
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    633

    I need macro for deleting blank cell along with another one cell.

    I need macro for deleting blank cell along with another one cell. If B1 is blank then Delete both A1:B1, other than they will be remain as before. Again if B10 is blank then Delete both A10:B10, and same way this procedure will be continue till last blank cell..

  2. #2
    Forum Contributor
    Join Date
    07-07-2005
    Location
    England
    MS-Off Ver
    Office 2019 Enterprise
    Posts
    462

    Re: I need macro for deleting blank cell along with another one cell.

    Assuming you only want to look down one columns..

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    633

    Re: I need macro for deleting blank cell along with another one cell.

    Hi, johncassell. it is not working
    Please Login or Register  to view this content.
    it will be like range B1:B1000 . here any cell of the range B1:B1000 is blank then delete repective A1:A1000
    say for exemple,if cell B1 is blank , & along this A1 having data. as B1 having blank i will be ignore A1 also. so i need to delete both of cell B1 & A1
    and like this till range B1:B1000

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: I need macro for deleting blank cell along with another one cell.

    try this code.


    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    633

    Re: I need macro for deleting blank cell along with another one cell.

    Hi, kvsrinivasamurthy
    Perfect , it works very well, thanks for your valuable time for me ..

  6. #6
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,531

    Re: I need macro for deleting blank cell along with another one cell.

    Here is another one that works on empty cells in Column B only.
    That's the way I understood your question in Post #1.
    It does not delete anything if a cell in Column A is empty


    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    633

    Re: I need macro for deleting blank cell along with another one cell.

    Hi, jolivanes
    Your solution is also great, my requirement is fulfillment. thanks for your time..

+ 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