Advertisement

06.04.2007 at 01:09PM PDT, ID: 22612071
[x]
Attachment Details

Run-time error '438' - Object does not support this property or method

Asked by lcilanadmin in Microsoft Office Suite

Tags: error, 438, object, support, property

I am trying to write a query to pull information listed in an Excel Spreadsheet (2003).  It runs for a bit, then give me the error:

Run-time error '438' - Object does not support this property or method.

I can reset the code to start from a different line and it runs a bit and errors again - it seems to run a different amount each time.  

The code is below - any help is appreciated.

Sub TSHomeDirectory()


Dim mycmd As String
Dim UserIn As String
Dim Objuser
For x = 1 To 13729
       
Set Objuser = GetObject("LDAP://" & Sheet1.Range("B" & x).Value)

         
    Objuser.GetInfo
    Range("C" & x).Value = Objuser.TerminalServicesHomeDirectory
    x = x + 1
    Set Objuser = GetObject("LDAP://" & Sheet1.Range("B" & x).Value)
           
   'Loop
Next

End Sub
Start Free Trial
[+][-]06.04.2007 at 06:17PM PDT, ID: 19213554

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.05.2007 at 05:19AM PDT, ID: 19216291

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.05.2007 at 02:43PM PDT, ID: 19221072

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.25.2007 at 04:40PM PDT, ID: 19570813

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]08.24.2007 at 04:03PM PDT, ID: 19766074

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]08.31.2007 at 08:38PM PDT, ID: 19812523

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Office Suite
Tags: error, 438, object, support, property
Sign Up Now!
Solution Provided By: Computer101
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32