+ Reply to Thread
Results 1 to 1 of 1

For Loop STOPS at Random Iteration!

Hybrid View

  1. #1
    Registered User
    Join Date
    10-13-2004
    Posts
    11

    For Loop STOPS at Random Iteration!

    Hi guys,

    I am kinda stumped on this one...

    The Background: We have a problem with Excel spreadsheets corrupting at the moment and I have been doing to basic testing to see if I can emulate this corruption. I wanted a simple spreadsheet that would open up spreadsheets on the server and save changes. I want it to do this 1000's of times to see if I could simulate workbooks corrupting. This is working however...

    The Problem: The spreadsheet attached simply prompts a user to select a folder (in my case this folder will contain the test suite of spreadsheets). The program then simply cycles through this directory and opens each spreadsheet in turn, writes data to a cell and then closes it. It loops through this folder performing these actions n number of times as indicated by the user on the front sheet with the input box "Iterations". However sometimes it will stop after 35 loops of the folder, sometimes 70 sometimes 60. Why is my code stopping before it completes the number of loops specified by the user!?

    If anbyone can offer any advice it would be gratefully appreciated!

    Liam
    Attached Files Attached Files

+ 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