+ Reply to Thread
Results 1 to 3 of 3

invalid next control variable reference

  1. #1
    Forum Contributor stockgoblin42's Avatar
    Join Date
    05-26-2011
    Location
    vancouver, canada
    MS-Off Ver
    Excel 2010
    Posts
    222

    invalid next control variable reference

    Hi,

    I shuffled some things around with my FOR NEXT loops and now I'm getting a invalid next control variable reference and it's highlighting my variable "Y".

    Will the error be between my FOR Y = ......

    and Next Y

    or what does this mean exactly


    any help is appreciated. thanks
    live logic & long prosper

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

    Something like this would cause the error you describe?
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: invalid next control variable reference

    Or, you can cheat, by being vague.


    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)

Similar Threads

  1. invalid next control variable reference for looping
    By alienalvan in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-30-2013, 03:19 PM
  2. Compile Error: Invalid Next Control Variable Reference
    By mlegge04 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-25-2012, 02:38 PM
  3. [SOLVED] Invalid Next control variable reference
    By dslack in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-05-2012, 08:20 PM
  4. invalid next control variable reference
    By stevesunfold in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 05-17-2008, 08:09 PM
  5. Invalid Next Control Variable Reference
    By teresa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-31-2005, 08:05 PM

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