+ Reply to Thread
Results 1 to 2 of 2

VBA code to execute for next row

  1. #1
    Registered User
    Join Date
    08-21-2012
    Location
    Somerset West, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    16

    VBA code to execute for next row

    Hi all,
    I have written VBA code using the "Do...Loop Until" statement for a range of 7 adjacent numbers in row A. When executed it returns a value in a separate cell. How can I get my VBA code to automatically move on to the next range of 7 adjacent numbers in row B and execute, and so forth, for row C, D, E, etc?

    Thank you.

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: VBA code to execute for next row

    Activecell.Offset(,1).select then rerun your Do Loop instructions again

+ 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] Code won't execute
    By ccpsc in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-03-2012, 06:28 PM
  2. Excel 2007 : Code will no longer execute
    By Rick K in forum Excel General
    Replies: 1
    Last Post: 10-07-2011, 01:16 AM
  3. Need to execute VBA code @ 9:30:01 exactly
    By jkupfer in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-31-2010, 01:47 PM
  4. Execute Code
    By gti_jobert in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-02-2006, 05:40 AM
  5. Code won't execute...
    By Dolemite in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-20-2005, 02:22 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