Bear with me...I'm new to this thread thing. I think this is a really simple question but it is driving me crazy that I can't figure it out. I have written a macro that switches between 2 worksheets. In the first worksheet I pick up a number and give it a variable name (prjnum). Then I flip to the second worksheet, select a range of numbers, then I want to find the first number (using the variable name) within that selection and insert information in that row.
I cannot come up with the proper syntax for the Find command:
Range(Selection, Selection.End(xlDown)).Select
Selection.Find(What:=prjnum, LookIn:=xlValues).Activate
I've tried the variable name with quote marks around it but it still doesn't work.
Can anyone help? (Just let me know if I'm not posting this thread properly!)
I cannot come up with the proper syntax for the Find command:
Range(Selection, Selection.End(xlDown)).Select
Selection.Find(What:=prjnum, LookIn:=xlValues).Activate
I've tried the variable name with quote marks around it but it still doesn't work.
Can anyone help? (Just let me know if I'm not posting this thread properly!)