+ Reply to Thread
Results 1 to 4 of 4

"For Loop Not Initialized" Error

  1. #1
    Registered User
    Join Date
    07-12-2014
    Location
    Chicago
    MS-Off Ver
    2013
    Posts
    67

    "For Loop Not Initialized" Error

    I have two blocks of code that work fine individually, but when I put them together, they stop working once we get to the first "Next"

    Here's the first code:
    Please Login or Register  to view this content.
    Here's the second code:
    HTML Code: 
    Again, both of these work perfectly individually, but when I put "TRACKING2" before "Next c2" in "TRACKING1", it all comes to a halt with an error message saying: "For Loop Not Initialized"

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

    Re: "For Loop Not Initialized" Error

    Are you copying the code from TRACKING2 and putting it in TRACKING1 or are you calling TRACKING2 from TRACKING1?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    07-12-2014
    Location
    Chicago
    MS-Off Ver
    2013
    Posts
    67

    Re: "For Loop Not Initialized" Error

    I've tried both ways, neither worked. Right now, I have it copied in.

  4. #4
    Registered User
    Join Date
    07-12-2014
    Location
    Chicago
    MS-Off Ver
    2013
    Posts
    67

    Re: "For Loop Not Initialized" Error

    I switched it so that I call it, it works now for some reason. I guess I just needed to restart.

    Thanks!

+ 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. = EMBED("Forms.ComboBox.1","") error "Reference not valid."
    By CatharinaCatharina in forum Excel General
    Replies: 2
    Last Post: 12-11-2014, 09:58 AM
  2. Error handling--resume next loop, but for a "DO WHILE" loop
    By submariner18 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-18-2012, 05:35 PM
  3. [SOLVED] How to Count number of "Error" and "OK" after the word "Instrument" found in table row
    By eltonlaw in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2012, 06:26 AM
  4. Error 92: For loop not initialized...how to fix?
    By excelspud in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-01-2011, 09:55 PM
  5. Array loop producing error "Run time error '1004'"
    By jeskit in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-06-2011, 08:56 AM

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