+ Reply to Thread
Results 1 to 4 of 4

Simple first unused row problem

  1. #1
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Simple first unused row problem

    I want a macro to look at Column A starting at the first row and when it finds the first cell that is empty delete the row where is found and also delete all rows in the entire workbook below it.

    It has to look at the first row and then the second row etc until it finds the blank. Doing it backwards (going up from the bottom) will not work with my data.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,754

    Re: Simple first unused row problem

    Try this:

    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Re: Simple first unused row problem

    Thanks for the help. That code takes a long time to run as I have many thousands rows of data that it is looping through. Any better way?

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Simple first unused row problem

    Hello ScabbyDog,

    Hree is a non looping method to delete the rows.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ 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. My problem is simple - no - it's me that's simple...
    By Glenn Kennedy in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 07-08-2012, 02:20 PM
  2. Simple SUM problem
    By aics1234 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-30-2008, 08:43 AM
  3. Simple Problem - Please Help
    By mpeplow in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-17-2006, 02:12 PM
  4. Simple problem
    By Mr. NDIS in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-06-2005, 09:10 PM
  5. simple =sum problem
    By feverpitch in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-13-2005, 07:03 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