Hi all, I have just started experimenting with vba in excel. I have had some success and a bit of fun! However I'm going nuts trying to write one macro to check a users ID against a worksheet.
I have written a macro which first checks all drives for a specific user file, then the macro below pulls the contents of three cells and assigns them to variables "strUser", "sSTAMP" and "sACCESS" (all public strings).
Now the macro checks "sSTAMP" against cells from another worksheet found in another workbook within a row (row 17).
Whenever I run this I get "subscript out of range" at the IF command. Where am I making the mistake? Is there a better way of looking along a row for an entry?
BTW I'm using office 2010.
Many thanks
Bookmarks