Consulting

Results 1 to 4 of 4

Thread: Can't add a reference to the specified file.

  1. #1
    VBAX Regular
    Joined
    Apr 2008
    Posts
    51
    Location

    Post Can't add a reference to the specified file.

    Hi,

    When i am trying to add user32.dll through Tools -> References -> Available references -> Browse of Excel VBA i am receiving the error message as Can't add a reference to the specified file.

    Can anybody help me what could have been the reason for this?

    Regards,
    Krrishna

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    You don't set a reference if you want to use APIs, you declare them in the code.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Regular
    Joined
    Apr 2008
    Posts
    51
    Location
    thanks.

  4. #4
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Please remember to mark your posts Solved.
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

Posting Permissions

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