+ Reply to Thread
Results 1 to 5 of 5

Strings Not Holding There Values.....

  1. #1
    Forum Contributor
    Join Date
    05-20-2008
    Posts
    162

    Angry Strings Not Holding There Values.....

    Hi All,
    I have the following code - which i 'Borrowed'.... The problem i have is that the strings don't seem to be holding there values once they get to the If IsEmpty part. So when the code is ran - no directories are made and nor is the file saved.....

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Strings Not Holding There Values.....

    hi JonesZoid, those two lines:

    Please Login or Register  to view this content.
    check if your string variables: strDirname, strFilename have any value. If they do not the code quits. So one of them or both are empty, check your file.

  3. #3
    Forum Contributor
    Join Date
    05-20-2008
    Posts
    162

    Re: Strings Not Holding There Values.....

    They are both "Empty".
    But
    Please Login or Register  to view this content.
    Are showing the values correctly....

    CONFUSED.....

    ---------- Post added at 04:21 PM ---------- Previous post was at 04:20 PM ----------

    They are both "Empty".
    But
    Please Login or Register  to view this content.
    Are showing the values correctly....

    CONFUSED.....

  4. #4
    Forum Contributor yay_excel's Avatar
    Join Date
    08-12-2011
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    190

    Re: Strings Not Holding There Values.....

    Don't test if the strings are empty using IsEmpty.

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    05-20-2008
    Posts
    162

    Re: Strings Not Holding There Values.....

    They still show empty - and so does the code following on.

+ 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