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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Invalid Qualifier

Status
Not open for further replies.

Sorwen

Technical User
Nov 30, 2002
1,641
US
I get an "Invalide Qualifier" Error on part of my code.

I first define a Type
Code:
Type Account
    CompareString1 As String
    CompareString2 As String
    OnRow As Long
    Found As Boolean
End Type

And then on this line I get the "Invalid Qualifier"
Code:
Accounts1.CompareString1 = Sheets(MyDefaultSheet).Range(MyRange).Value

MyDefaultSheet is a name I give to the function in an inputbox. MyRange is created by input from another inputbox and the count of a for loop. Any idea why I would get that error. I've worked with Types before without problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top