+ Reply to Thread
Results 1 to 2 of 2

VBA Delete row starting with specific cell

  1. #1
    Registered User
    Join Date
    06-15-2011
    Location
    Converse, TX
    MS-Off Ver
    Excel 2016
    Posts
    72

    VBA Delete row starting with specific cell

    I am currently trying to format a worksheet and want to delete blank rows starting with cell 'G5'. If I use the current code below it removes even my protected cells that I want to leave intact.

    Please Login or Register  to view this content.
    Any ideas on how to achieve this? I was thinking of selecting a range from G5 downward, but I never can get the xl to end to work properly for me. Any help would be appreciated.

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

    Re: VBA Delete row starting with specific cell

    You will probably need to loop through each cell and test for both blank and locked. Something like this:

    Please Login or Register  to view this content.
    If you are happy with my response please click the * in the lower left of my post.

+ 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] paste data on the clipboard starting at a specific cell
    By djarum11 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-17-2015, 12:34 PM
  2. Replies: 0
    Last Post: 03-29-2015, 08:11 PM
  3. remove all text starting from specific character in a cell
    By itselflearn in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-24-2015, 12:17 PM
  4. [SOLVED] How to locate specific text within a cell, starting from the right
    By SimplySA in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-04-2014, 04:27 AM
  5. copy a cell multiple times depending on cell value starting on a specific cell
    By weritadiojomiel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-17-2013, 05:25 AM
  6. Replies: 5
    Last Post: 09-30-2010, 01:50 PM
  7. Replies: 5
    Last Post: 07-18-2005, 01:05 AM

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