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

Compare Excel string with Extra variable

Status
Not open for further replies.

nrm3

Technical User
Jan 26, 2009
12
US
I am scanning the 1st column of an excel sheet in order to find a specific row.
I can see the excel string in a Msgbox ,but can not compare it to an excel variable.

MyData.value = XL.application.worksheets("EMUX").Range(Cstr("A" & row)).Value

Msgbox MyData.value

If( MyData.value = CLO) Then 'CLO = extra variable

GoTo label_FoundClo

End if


This code does not work for me. Any ideas?
 
Hi

What exact value is in your CLO variable?

How is MyData declared.

Please post your code

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top