Results 1 to 3 of 3
  1. #1
    5 Star Lounger
    Join Date
    Mar 2001
    Location
    New York, NY
    Posts
    922
    Thanks
    2
    Thanked 12 Times in 11 Posts
    I've been adding code to my VBA project in Word 2007 for several hours, having added a couple hundred lines of code. When I tested, I got an error "Bad DLL calling convention". There are no DLL calls in the code, no DLL references added to the template.

    The code stops on the first of several near identical Subs. The code I added today involved variations on the Sub; but it's the first one that gets called that seems to be the problem.

    I had a backup from yesterday. I exported the code modules I added today, and imported them into my backup. No problem of any kind.

    What, then, would trigger the "Badd DLL" error? Could it be corruption in the code raising a bogus error?

    Thanks.

  2. #2
    3 Star Lounger Jim Cone's Avatar
    Join Date
    Feb 2002
    Location
    Portland, Oregon, USA
    Posts
    238
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Review the data type of the sub arguments - in particular that you pass a Variant to a Variant.
    '--
    Jim Cone
    Portland, Oregon USA
    Primitive Software

  3. #3
    5 Star Lounger
    Join Date
    Mar 2001
    Location
    New York, NY
    Posts
    922
    Thanks
    2
    Thanked 12 Times in 11 Posts
    Thanks. I'll review the arguments.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •