Hey everybody,
I am currently trying to make an auto populating form using index/match and VBA. The form will function by referencing 2 sheets to populate 1 in the same workbook. A reference name will come from the 'acct settle' sheet and various fields will be pulled from 'synd data' sheet to fill 'wire form' throughout a loop(hense VBA).
My working function in cell is =INDEX('Synd Data'!I$2$:I$20$,MATCH('acct settle'!A6,'Synd Data'!B2:B5,0))
Now my problem here is transferring this function into VBA terms. Here is my best attempt
WorksheetFunction.Index(Worksheets("Synd Data").Range("I$2$:I$20$"), _
WorksheetFunction.Match(Worksheets("Acct settle").Range("B15"), _
Worksheets("Synd Data").Range("B$2$:B$5$"), 0))
I know this is jumping around all over the place between sheets and I think that is the reason for my 1004 run time error. I have also attempted using just Application.Match and Application.worksheetFunction.Match. So my big question is if this is even possible and how I could get this to return a value to a cell regardless of a string or int. Thanks for any help in advance, I know this is a hot mess.
Bookmarks