+ Reply to Thread
Results 1 to 15 of 15

Using DLL in VBA

Hybrid View

  1. #1
    Registered User
    Join Date
    09-15-2011
    Location
    Anaheim, CA
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Using DLL in VBA

    Thank you for the suggestion. The DLL is a 32-bit DLL and I'm having the same problem in both Windows XP and Windows 7 (64-bit). Excel 2010 is the 32-bit version also.

    The DLL is a third party DLL and here is the declaration for it:

    Declare Function pp_libtest Lib "KeyLBE32.dll" (ByVal testnum As Long) As Long

    The file is in my System32 folder. I've also tried putting it in a different folder and changed the declaration to point there. Same problem.

    The really weird thing is that on the computer that has both Excel 2007 and 2010, it only works on 2007. That's even when I open up the same file in the same location. And the DLL is located in the same location.

    Headpygmie

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Using DLL in VBA

    Hello headpygmie,

    The 32 in the name indicates it is for a 32 bit OS. Do you know for certain that the DLL has been registered on the system?
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ 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