+ Reply to Thread
Results 1 to 2 of 2

Do Until Loop to copy cells to another sheet

  1. #1
    Registered User
    Join Date
    08-04-2009
    Location
    scotland
    MS-Off Ver
    Excel 2003
    Posts
    19

    Question Do Until Loop to copy cells to another sheet

    Hi,

    I have a workbook with multiple sheets and one main sheet called "Low Level Data". I want to paste certain cells from a worksheet to the next blank row in the "Low Level Data" sheet. The macro seems to be copying the cells but not pasting them anywhere!

    My code is below, can anyone help?

    Please Login or Register  to view this content.
    Help would be Much Appreciated!

  2. #2
    Valued Forum Contributor mdbct's Avatar
    Join Date
    11-11-2005
    Location
    CT
    MS-Off Ver
    2003 & 2007
    Posts
    848

    Re: Do Until Loop to copy cells to another sheet

    The first problem was that you were checking against the wrong variable for the engine number. You assigned the value to SCEngineNo but the If statement checked a variable called EngineNo.

    There also was no mechanism to stop the looping once the engine number or blank was found. You would fill your sheet with the same info in each row.

    I've highlighted the changes to your macro.
    Please Login or Register  to view this content.

+ 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