+ Reply to Thread
Results 1 to 4 of 4

Project getting stuck on a Do While statement

  1. #1
    Registered User
    Join Date
    06-19-2009
    Location
    QUeen Creek, az
    MS-Off Ver
    Excel 2003
    Posts
    5

    Project getting stuck on a Do While statement

    I am presently working on a project and I have some code that I am trying to get working but I really dont know all that much about VBA. What I am doing is in the workbook I have information and on each row in the 'L' column there is a numerical value. When that value says '4' I am looking to have the script copy/paste the information on to sheet 2 in the next row available and then delete the row on sheet 1 and move the information up so there are no gaps. Here is a link to my dropbox where the file is stored:https://www.dropbox.com/s/673estnvrh...ker%283%29.xls And here is the code I am working with. Thank you for all your suggestions and help in advance.
    Please Login or Register  to view this content.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Project getting stuck on a Do While statement

    Loop backwards, starting from the last row with data.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    06-19-2009
    Location
    QUeen Creek, az
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Project getting stuck on a Do While statement

    Okay. Will that keep it from getting stuck? What I mean by getting stuck is that when I test the code, it stops in the 'Do While' line and hangs up on 'sheet1'.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Project getting stuck on a Do While statement

    When deleting you should always loop backwards/upwards.

    I can't tell if it will help in your case as I couldn't open the file because the file extension doesn't match the file format.

+ 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] stuck in a little project ---> give unique id to papers
    By rip4life in forum Excel Formulas & Functions
    Replies: 24
    Last Post: 05-25-2013, 05:49 PM
  2. Help stuck on project to populate multiple fields
    By jhill202 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-17-2012, 09:53 AM
  3. Did you ever get stuck in a project?
    By Mordred in forum The Water Cooler
    Replies: 12
    Last Post: 11-08-2011, 07:05 AM
  4. Simple IF Satement Road Block Please HELP
    By needtolearn in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-08-2006, 04:20 AM
  5. Case Satement
    By deelee in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-11-2006, 07:12 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