emailing
11-19-2007, 09:37 AM
Hi everybody,
Looking for support with the following problem:
I am using the XLQ-AddIn (xlquotes.com) to get stock prices from the Internet. The formula is ?=XLQ()?, e.g. for the last stock price of Yahoo you use
=XLQ("YHOO", "LAST")
Now I want to use this in VBA, so that I do not always have to enter the whole formula on the worksheet. Via a userform I enter the stock code (e.g. YHOO) into one column and want to use this code in another column together with the formula. Unfortunately it does not work the way I do it.
I have tried it with
ActiveCell.Offset(0, 14).Formula = "=XLQ(" & Me.txtCode.Text & ", "LAST")"
Me.txtCode.Text refers to the stock code entered into the user form.
Don?t know, maybe it?s not possible to use the XLQ formula in VBA???
Would be great if somebody could help me on this, many thanks in advance!
Looking for support with the following problem:
I am using the XLQ-AddIn (xlquotes.com) to get stock prices from the Internet. The formula is ?=XLQ()?, e.g. for the last stock price of Yahoo you use
=XLQ("YHOO", "LAST")
Now I want to use this in VBA, so that I do not always have to enter the whole formula on the worksheet. Via a userform I enter the stock code (e.g. YHOO) into one column and want to use this code in another column together with the formula. Unfortunately it does not work the way I do it.
I have tried it with
ActiveCell.Offset(0, 14).Formula = "=XLQ(" & Me.txtCode.Text & ", "LAST")"
Me.txtCode.Text refers to the stock code entered into the user form.
Don?t know, maybe it?s not possible to use the XLQ formula in VBA???
Would be great if somebody could help me on this, many thanks in advance!