Hi,
I'm a novice for VBA. My quesiton is that I'm writing some UDFs which can do some calculation dynamically on stock prices. To achieve that, I hav my spreadsheet link to stock quote system, which can pull dynamic data continuously.
Unfortunately, wherever open my model, I got the "automation error" message. I think the reason is mainly because my UDFs can not have valid reference as the stock quote systerm has a time lag before retrive any data.
Therefore, I really appreciate if someone can tell me how I can delay my UDFs to start to calculate.(wait till stock price is retrived) In excel formula, I can use "if(iserror(a1), 0, "do calculation"), but do I have the similar method in VBA?
It is time sensitive and I appreicate your help.
JJ
I'm a novice for VBA. My quesiton is that I'm writing some UDFs which can do some calculation dynamically on stock prices. To achieve that, I hav my spreadsheet link to stock quote system, which can pull dynamic data continuously.
Unfortunately, wherever open my model, I got the "automation error" message. I think the reason is mainly because my UDFs can not have valid reference as the stock quote systerm has a time lag before retrive any data.
Therefore, I really appreciate if someone can tell me how I can delay my UDFs to start to calculate.(wait till stock price is retrived) In excel formula, I can use "if(iserror(a1), 0, "do calculation"), but do I have the similar method in VBA?
It is time sensitive and I appreicate your help.
JJ