+ Reply to Thread
Results 1 to 3 of 3

from access to excel

  1. #1
    Registered User
    Join Date
    01-31-2005
    Posts
    5

    from access to excel

    Hi everybody,

    I've got a macro in excel that imports some data from a name.mdb file. For several weeks it worked with no problems, but since a couple of days, when I run it, it shows me a message of it does not find the file name.mdb (showing the whole path), suggesting me that use the file name.mdb (the same one previous with the same previous path). If I agree, a series of windows appears in order to confirm the file, the password and all that, and then coppy all the the requested information. This message appears before execute:

    .Refresh BackgroundQuery:=False


    Any suggestion???

    Thanks in advance

    Sharon

  2. #2
    Valued Forum Contributor
    Join Date
    12-16-2004
    Location
    Canada, Quebec
    Posts
    363
    Hi

    Strange problem it is probably a variable that is not define properly. To elimate this theory put at the begin of your code Option Explicit. This will let you know that every variable has been declare properly.
    Denis

    Please always attach the sample workbook without sensitive information when asking for help

    To add a module
    Press Alt + F11 (this is the Visual Basic Environment)
    Insert Menu, select Module
    Past code there
    Close Visual Basic Environment (X)

  3. #3
    Registered User
    Join Date
    01-31-2005
    Posts
    5
    Thank you Denis, but this seems to be something different. I moved both files to another folder (changing the path in the code) and now is working well again , but still I not sure if that is the solution.

    Sharon

+ 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