+ Reply to Thread
Results 1 to 4 of 4

how to delete delete rows with criteria and keeping formula

  1. #1
    Registered User
    Join Date
    04-18-2013
    Location
    Rotterdam
    MS-Off Ver
    Excel 2013
    Posts
    2

    how to delete delete rows with criteria and keeping formula

    Hello everyone,

    I got this code for deleting empty rows if column B has no value. It works fine except that column B contains formula's that when the marco is run, is converted to values. How can I keep the formulas in column B? Much appreciate your help!


    Sub RemoveEmptyRows()
    On Error Resume Next
    With Range("B3:B100")
    .Value = .Value
    .SpecialCells(xlCellTypeBlanks).EntireRow.Delete
    End With
    End Sub


    Regards Remco

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: how to delete delete rows with criteria and keeping formula

    Try this...

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    04-18-2013
    Location
    Rotterdam
    MS-Off Ver
    Excel 2013
    Posts
    2

    Re: how to delete delete rows with criteria and keeping formula

    It works.... brilliant, tnx!

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: how to delete delete rows with criteria and keeping formula

    Glad it helps you and thanks for the feedback

+ 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