hi mike, thanks for reply. turns out i'm not using vlookup function, since
the table where i'm pulling information is pretty much fixed and is just
updated periodically, i'm using loop to go through table row by row. did end
up using "match" function to determine what row to place payment amount
within each tab. this seems to work, see VBA below: (sheet1 has the table
which has bloomburg formulas, behind sheet1 is a sheet for each account
listed in table. table has four columns: acct no., sheet name, pymt amount,
pymt date):
Sub Macro()
Sheets("sheet1").Activate
For i = Cells(Rows.Count, "a").End(xlUp).Row To 2 Step -1
Sheets("sheet1").Activate
Dim amt As Currency
amt = Cells(i, 3).Value
Dim date As Single
date = Cells(i, 4).Value
Dim sheetname As String
sheetname = Cells(i, 2).Value
Sheets(sheetname).Activate
Dim drop As Integer
drop = WorksheetFunction.Match(date, Range("b14:b114"), 1) + 13
Cells(drop, 3).Value = amt
Next i
End Sub
i'm novice in VBA and would appreciate any comments regarding above. oft
times i'm not aware of logic that is behind code, just pull it off discussion
board, tweak it until it works for what we need.