+ Reply to Thread
Results 1 to 6 of 6

How to fix Error in loading DLL

  1. #1
    Forum Contributor
    Join Date
    11-07-2005
    Posts
    280

    How to fix Error in loading DLL

    Hi everyone,

    Recently I faced a new problem for me, it occures only with one excel workbook containing some VBA codes, while other workbooks which alos contain VBA Codes work normally.

    The problem is a message box appears contains (Error in loading DLL) when I try to run any macro in the.

    Any suggestions to solve this problem??

    Thanks,

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,437

    Re: How to fix Error in loading DLL

    Does it say which DLL?

    Goto to VBE (ALT+F11)
    Tools > References. Check for any missing references.
    Also check that any that are check are actually needed.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Contributor
    Join Date
    11-07-2005
    Posts
    280

    Re: How to fix Error in loading DLL

    References in the corrupted workbook is not active, while it is active in a new workbook.
    Last edited by LoveCandle; 04-25-2009 at 07:06 AM.

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,437

    Re: How to fix Error in loading DLL

    Sorry, what do you mean by that?

    Can you post the workbook that causes the error?

  5. #5
    Forum Contributor
    Join Date
    11-07-2005
    Posts
    280

    Re: How to fix Error in loading DLL

    I meant that References option in Tools Menu in the corrupted workbook is not active, while when I open a new workbook I find References option active!!!

    Anyhow, I found a back-up workbook of the corrupted one and I solved the problem by copying all modules and forms from the corrupted workbook to the proper one and all codes and forms are working normally now,


    But, Can I know what causes that problem in order to avoid facing the same problem again in the future,

    I remember that I made some changes in the forms design before facing that problem,

    Thank you Andy,

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,437

    Re: How to fix Error in loading DLL

    It's pretty much impossible to say what you did to corrupt your workbook without seeing it and you being able to detail what you did.

    Glad you managed to recover a backup version though.

+ 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