+ Reply to Thread
Results 1 to 3 of 3

Non-declared variable

  1. #1
    Forum Contributor
    Join Date
    12-26-2006
    Posts
    189

    Non-declared variable

    Hi,

    I have a VBA code that works fine in my computer, but if i run it in another one, it reports me an error regarding a non-declared variable, for example:
    Please Login or Register  to view this content.
    ´

    It points to "fileSaveName" as an error!

    What can i do, so that i mustn't change avery cases like this?

  2. #2
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    Hi

    Your friend probably has "Require variable declaration" in his VBE Options. All you need to do is declare the variable:

    Please Login or Register  to view this content.
    Although I'm not certain why you have this code as a function...

    Richard

  3. #3
    Forum Contributor
    Join Date
    12-26-2006
    Posts
    189

    Thumbs up

    Thank you soo much richard!

    Th Function, i don't know either. I'm a poor programmer and i've copied this part of the code, so i copied too de "Function".

    Thanks!!

+ 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