What I need to do is to write a procedure that will utilize an input text box and allow a user to enter a variant into the text box as a search term. And as long as the number of characters in the input box is >=1 character in the text box I need whatever is input in that textbox to reference a single column of data and if an exact match is found, to look at the cell in the same row/adjacent column (to the right) and open the hyperlink in the adjacent column in a web browser. I have looked all around the net but have not found anything remotely similar with EXCEPTION to a statement made in this closed thread on this website (hence why I have signed up here):
Specifically in the post you mention, "i.e., returning a secondary column's data from the same row as that of a key column's lookup value"
I don't need the exact url returned as a result. But what I do need is if the variant search term that is typed in by the user into the text input box matches ANY cell in any row of column 1, then offset (look at the cell in adjacent column/same row to the right AND follow the hyperlink in that cell.
Here is some FYI on the simplistic structure of my spreadsheet. In my spreadsheet I have only 2 columns. Column 1 consists of cells that have multiple words (up to 32 words). Column 2 consists of all hyperlinks to web pages that correspond to the cell to their left. I'd like the ability if possible when typing in the input box for a vlookup or match function to be occurring simultaneously and if matching to autofill BUT allow user to complete the word they are typing (just in case word they are typing is different). I'd like a button with an assigned macro created to accomplish this. Any help provided would be so greatly appreciated and just fyi I started trying to learn visual basic this afternoon at 1pm and am just now breaking. Here is what I have so far. I just sincerely don't know how to bring all of this together, please don't laugh too hard:
Option Explicit
Sub MyFirstProcedure()
End Sub
Const dataSheetName = "Sheet1" ' name of sheet
Dim theInput As Variant ' from user
Dim theResult As Variant 'from user
Dim Column1 As Variant 'from user
Dim Column2 As Variant 'from user
theInput = InputBox("Lookup sports car", "Type in what type of sports car?")
theResult = vlookup
Specifically in the post you mention, "i.e., returning a secondary column's data from the same row as that of a key column's lookup value"
I don't need the exact url returned as a result. But what I do need is if the variant search term that is typed in by the user into the text input box matches ANY cell in any row of column 1, then offset (look at the cell in adjacent column/same row to the right AND follow the hyperlink in that cell.
Here is some FYI on the simplistic structure of my spreadsheet. In my spreadsheet I have only 2 columns. Column 1 consists of cells that have multiple words (up to 32 words). Column 2 consists of all hyperlinks to web pages that correspond to the cell to their left. I'd like the ability if possible when typing in the input box for a vlookup or match function to be occurring simultaneously and if matching to autofill BUT allow user to complete the word they are typing (just in case word they are typing is different). I'd like a button with an assigned macro created to accomplish this. Any help provided would be so greatly appreciated and just fyi I started trying to learn visual basic this afternoon at 1pm and am just now breaking. Here is what I have so far. I just sincerely don't know how to bring all of this together, please don't laugh too hard:
Option Explicit
Sub MyFirstProcedure()
End Sub
Const dataSheetName = "Sheet1" ' name of sheet
Dim theInput As Variant ' from user
Dim theResult As Variant 'from user
Dim Column1 As Variant 'from user
Dim Column2 As Variant 'from user
theInput = InputBox("Lookup sports car", "Type in what type of sports car?")
theResult = vlookup