+ Reply to Thread
Results 1 to 3 of 3

Do...Loop failure!

  1. #1
    Registered User
    Join Date
    10-27-2008
    Location
    Southampton, UK
    Posts
    12

    Do...Loop failure!

    Ok, I thought I was being smart and have produced the following code:

    Please Login or Register  to view this content.
    But it's kicking out a loop failure, because it says it can't have a loop without a 'Do'. However, I have 2 'Do's and 2 'Loop's so I don't see why it's not working.

    The code is supposed to add up the values in (n) number of rows (each 4 rows apart) and paste that value into a cell on a different sheet, then repeat, offset down one row, then repeat on the original row series but offset one across... etc and so on, until it runs out of values to add and paste.

    Any help would be much appreciated...

    fd.
    Last edited by foxtrotdelta; 11-05-2008 at 09:49 AM.

  2. #2
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650
    Hi, Have you got and "End if " missing at the bottom of the code !!
    Mick

  3. #3
    Registered User
    Join Date
    10-27-2008
    Location
    Southampton, UK
    Posts
    12
    D'oh!

    Perfect, it works now! Fantastic. I really wasn't sure if I'd got all my variables adding up right, but I do, and it all crumbled on one tiny omission.

    Thanks!

+ 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