Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

object error

Status
Not open for further replies.

braven

Programmer
May 20, 2009
58
CA
i have error in LINE
.Cells(j,"A").Value = Name - OBEJCT ERROR
COULD YOU HELP ME WHY IT IS COMING?

j = 2

Do
For i = 8 To 22
Name = Trim(Sess.Screen.GetString(i, 12, 10))
Account = Trim(Sess.Screen.GetString(i, 34, 19))
j = j + 1
With xl_wb.Worksheets("EQPSC")
.Cells(j,"A").Value = Name
.Cells(j,"B").Value = Account
End With

Next i
 
Could it be that "Name" is a reserved word? You could change it to "strName" and test to see...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top