Results 1 to 8 of 8

Thread: Macro not working for fetching data from Active Directory

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    VBAX Newbie
    Joined
    Aug 2018
    Posts
    3
    Location
    Quote Originally Posted by Dave View Post
    P45cal probably has already resolved your difficulties but I thought I would suggest that you place Option Explicit at the top of your code as some variables are not declared (eg. "name"). Also, in light of P45cal's suggestions the following declaration...
    Dim signum, name, ldapstr, relation As String

    only declares "relation" as a string variable which seems
    relevant. HTH. Dave
    Hi Dave,

    I have tested same as well and getting the error as per attached snapshot.

    " run time Error -2147023541 (8007054b)
    Automation Error
    The Specified domain either does not exist or could not be contacted."

    and step where getting error now is "Set x = GetObject(ldapstr)"

    And when I again check same file in my old machine then there is no error.
    Could you please suggest further , how to solve this issue. I am basic VBA user so difficult to identify how to solve this.
    Last edited by Aussiebear; 04-15-2025 at 04:26 AM.

Tags for this Thread

Posting Permissions

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