jauwaert
07-10-2003, 07:27 AM
Is it possible to do a Vlookup within VBA that has a table that isn't on the ActiveSheet? I'm trying to write a function that looks up over one range if the value in a column is "G" and a different range if the value is "Y". The table is on a different sheet than those values, and I keep getting #VALUE? as the result of the function.
Also, some of the values that my vlookup is dependent on are also results of another vlookup. Whenever I change the original source, I get #N/A in all of my formulas until I do something like hit F2 on a cell on that sheet, and press Enter. I have Application.Volatile in both of the user functions I'm using now. Is there something else I could do so they update automatically?
Also, some of the values that my vlookup is dependent on are also results of another vlookup. Whenever I change the original source, I get #N/A in all of my formulas until I do something like hit F2 on a cell on that sheet, and press Enter. I have Application.Volatile in both of the user functions I'm using now. Is there something else I could do so they update automatically?