Originally Posted by
royUK
Why would you need VBA for this? A simple VLOOKUP formula would work
Because actually, I guess I was trying to simplify what I was trying to do. My goal is actually to produce a form of sorts where you put in a student number then format the number. A macro then searches various sheets for the student number and consolidates formatted search results into either a couple of cells at the top of a table or into a form.
I thought that my first step would be to be able to use find (or application.vlookup) on a string get the resultant range and use the data in the row for each cell in the range.
So if I have a table where;
A1 = "112233" and B1 = "English"
output would be a range with the first cell in that range referencing A1, how do I assign to a string variable the value of the column beside A1 (ie B1)?
Thanks
Bookmarks