+ Reply to Thread
Results 1 to 3 of 3

Do While

Hybrid View

  1. #1
    Registered User
    Join Date
    04-07-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    22

    Do While

    using the Do While function

    CODE:

    Do While FileName > 0

    END CODE

    Gets hung up and needs to debug, I dont understandt why

  2. #2
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: Do While Hang up

    Assuming FileName is a string, you can't compare a string against a numeric data type using mathematical operators.

    What are you trying to accomplish with that line of code?
    Is your code running too slowly?
    Does your workbook or database have a bunch of duplicate pieces of data?
    Have a look at this article to learn the best ways to set up your projects.
    It will save both time and effort in the long run!


    Dave

  3. #3
    Registered User
    Join Date
    04-07-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: Do While Hang up

    AH HA! yep that fixed it! Thanks!

    I am using it to keep a loop going, I am opening a series of files in one folder to pull and consolidate data into one sheet, but the # of files changes everyweek, thus I am using a bogus referance to allow it to keep running.

+ 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