+ Reply to Thread
Results 1 to 6 of 6

How to set up a loop

  1. #1
    Registered User
    Join Date
    10-27-2011
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    7

    How to set up a loop

    I am trying to set up a macro to delete empty rows I have tryed a few things but this is the only code which seems to actully run through it.

    How do I set up a loop so it will start at C20 for example and work up the sheet till C2

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: How to set up a loop

    Try this code -
    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor
    Join Date
    08-29-2011
    Location
    Mississauga, CANADA
    MS-Off Ver
    Excel 2010
    Posts
    503

    Re: How to set up a loop

    Try this.
    If it works then please mark the post as SOLVED

    Please Login or Register  to view this content.

  4. #4
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: How to set up a loop

    Another option:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    10-27-2011
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: How to set up a loop

    Nilem for some reason that will not work the first part of the macro is copying and pasting text from a table in another workbook and this seems to be making the macro think there is data in the blank cess but there is not

  6. #6
    Valued Forum Contributor
    Join Date
    08-29-2011
    Location
    Mississauga, CANADA
    MS-Off Ver
    Excel 2010
    Posts
    503

    Re: How to set up a loop

    GrahamRoss, Did you try mine above?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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