Glenn, Thank you my column index number was zero. I assumed you started with zero when counting columns. Thanks for your help. Everything works as expected now.
Also MakeItSo, I am using an English Excel. Thanks for everyone's input.
Hi all, thanks for the replies.
I changed all my variables to Long just in case, with no change.
Here is the code that debug highlights right before I get the error:
If Sheet1.TextBox1.Text = Sheet3.Cells(lngRowNum, lngColNum).Value Then
Thanks for all your help.
I am in the beginning stages of coding together an excel project to search and find specific data. I introduced my first WHILE statement and now I get a message box that says: "RUN-TIME Error '1004' Application-Defined or Object-Defined Error"
Here is my code:
Private Sub...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.