Consulting

Results 1 to 9 of 9

Thread: Check if library exists

  1. #1

    Check if library exists

    Hi, I need help. How to check if library exists? I have library name and I would check if library exists. If library doesn't exists then macro should this library turn on.

  2. #2
    Knowledge Base Approver VBAX Wizard
    Joined
    Apr 2012
    Posts
    5,646
    simply use createobject("libraryname")

    If it's loaded it wil be used

    If it's not loaded it will be loaded and used.

  3. #3
    Thanks snb. Doesn't work Show me "ActiveX component can't create object". How to fix? I should give the path to library or only library name?

  4. #4
    Knowledge Base Approver VBAX Wizard
    Joined
    Apr 2012
    Posts
    5,646
    library name

  5. #5
    Uhm, doesn't work.

    I receive error "ActiveX component can't create object".

    My code
    CreateObject ("Microsoft ActiveX Data Objects 2.8 Library")



  6. #6
    Knowledge Base Approver VBAX Wizard
    Joined
    Apr 2012
    Posts
    5,646
    With CreateObject("ADODB.recordset")

  7. #7
    Thanks, and how to enabled "Microsoft Visual Basic for Applications Extensibility 5.3" library?

  8. #8

  9. #9
    Wow, snb You're the best! Thanks You very much!

Posting Permissions

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