Results 1 to 5 of 5

vba delete blank cells in range B:B,J:J,O:O so as not affect next column values cells.

Threaded View

  1. #1
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    vba delete blank cells in range B:B,J:J,O:O so as not affect next column values cells.

    Dear experts

    I need your help on this..I have 3 set range of data , A:B ,H&J,N:O...where finds col B,J,O blank cells delete blank cell only not to delete another set of data range


    Sub delcookies()
       Application.ScreenUpdating = 0
        On Error Resume Next
         With Sheets("cookies").Range("b2:b" & Range("a" & Rows.Count).End(xlUp).Row)
            .Offset(, 1).Columns.Resize(, 3).Clear
            .SpecialCells(4).EntireRow.Delete
            On Error GoTo 0
         End With
         Application.ScreenUpdating = 0
    End Sub
    find the attachment & find the sheet(expected result)..
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 11
    Last Post: 02-28-2014, 02:40 PM
  2. [SOLVED] Copy non blank cells in a range where there are certain values in another column
    By Knocknaboula in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-23-2013, 08:51 AM
  3. Replies: 5
    Last Post: 01-24-2013, 06:29 AM
  4. [SOLVED] How to Delete Entire Row if Range of Cells are Blank?
    By mrodrigues in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-10-2012, 09:42 PM
  5. [SOLVED] Macro to delete blank cells and unwanted cells in a particular column
    By Nikkishr in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-09-2012, 06:22 PM

Tags for this Thread

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