Results 1 to 4 of 4

Thread: Error message "Cannot load dll " while loading vba macro

  1. #1
    Join Date
    Mar 2008
    Posts
    31

    Error message "Cannot load dll " while loading vba macro

    Hi,

    I am having an Excel file in which i have created many VBA macros in it.Whenever i try to save this file i am getting an message which says me Excel cannot save the file and evenif i try to load any macro in it at that time i am getting an error message as Cannott load dll.

    Can anyone help me out with this error messages.Thanks in Advance.

  2. #2
    Join Date
    Dec 2008
    Posts
    123

    Re: Error message "Cannot load dll " while loading vba macro

    Try to follow the below steps:-


    1. Open the project and on the Project menu, click on References.
    2. Now clear the Microsoft DAO 2.5Compatibility Library and select the Microsoft DAO 3.5 Object Library.
    3. Click OK and save the project.
    4. Now return to References, switch the object libraries back again and resave the project.
    5. In the Setup Wizard - Click on ActiveX Server Components pane of the Setup Wizard, click Add Local, and add MSJET35.DLL from your Windows\System directory (Windows 95) or Windows\System32 directory (Windows NT). This process adds the Microsoft Jet 3.5 database engine and its supporting files.

  3. #3
    Join Date
    Mar 2008
    Posts
    31

    Re: Error message "Cannot load dll " while loading vba macro

    I have try to follow the above steps but still facing same issue.

  4. #4
    Join Date
    May 2008
    Posts
    4,345

    Re: Error message "Cannot load dll " while loading vba macro

    I was also gettign same message because there was some connection error i try to connect it manually by using the following code.

    Code:
    Set ws = CreateWorkspace("A", "", "", dbUseODBC)
    Set db = ws.OpenDatabase("")
    Dim connect As String
    connect = db.connect
    
    Set db = ws.OpenDatabase("", , , connect)
    sql = "SELECT " & finalSelection & Chr(13) & "" & Chr(10) & "FROM " & lib & "." & file1 & " " & file1 & textfinal1
    
    Set rs = db.OpenRecordset(sql)

Similar Threads

  1. Replies: 5
    Last Post: 31-12-2011, 05:16 PM
  2. Replies: 5
    Last Post: 03-07-2011, 09:13 PM
  3. Error Message, "Unable to locate and load drivers"
    By Emily123 in forum Networking & Security
    Replies: 2
    Last Post: 20-05-2009, 11:30 PM
  4. Error Message "Error loading lame_enc.dll"
    By Ektaa in forum Operating Systems
    Replies: 6
    Last Post: 04-03-2009, 05:48 PM
  5. Replies: 3
    Last Post: 18-01-2008, 10:10 PM

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
  •  
Page generated in 1,713,943,058.37262 seconds with 17 queries