Hi guys
I am trying to higlight rows that follow a specific criteria set by the user. I have tried this
Then I get a Type Mismatch error! What can be the problem?Please Login or Register to view this content.
Best regards
Danny
Hi guys
I am trying to higlight rows that follow a specific criteria set by the user. I have tried this
Then I get a Type Mismatch error! What can be the problem?Please Login or Register to view this content.
Best regards
Danny
par1 = "S70MC-C" that's a string. Not number.
You can not compare "S70MC-C" with number.
Same for par2 = "341C"
Ah okay..
But how do I fix it then? Even changing Dim to String doesn't help?
The error occurs in the If in the loop.
Don't think you can have "if Rows(i) = par1", you would need either a value or a range so you probably want:
Please Login or Register to view this content.
Thanks yudlugar.
At least I got rid of the Type Mismatch error.
But the code turns all the rows the specified color?!
Can it be, so that it only turns the rows that meet the par1 and par2 criteria the specified color?
Best regards..
I solved it my self. It was only a missing "i".. The code enden up:
Thanks a lot..Please Login or Register to view this content.
Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED",as per our Forum Rule #9. I will do it for you this time.
In future, to mark your thread as Solved, you can do the following -
Select Thread Tools-> Mark thread as Solved.
Incase your issue is not solved, you can undo it as follows -
Select Thread Tools-> Mark thread as Unsolved.
Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
Regards
Fotis.
-This is my Greek whisper to Europe.
--Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.
Advanced Excel Techniques: http://excelxor.com/
--KISS(Keep it simple Stupid)
--Bring them back.
---See about Acropolis of Athens.
--Visit Greece.
Hi Fotis!
I have been looking for the "solved" button for ten minutes now. So thanks for your help..
I have added to yudlugars reputation.. Don't worry..
Best regards
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks