Syntax error?

D

David

Hi Group,

I must have a syntax error here, but can not figure it out:
myurl =
"=http://moneycentral.msn.com/investor/invsub/results/statemnt.aspx?Symbol="
& Symbol _
& "&lstStatement=Income&stmtView=Qtr"
Set QT = ActiveSheet.QueryTables.Add( _
Connection:="URL;" & myurl, _
Destination:=Range("B1"))
With QT
.BackgroundQuery = True
.TablesOnlyFromHTML = False
.PreserveFormatting = True
.WebSelectionType = xlSpecifiedTables
.WebTables = "8"
.Refresh BackgroundQuery:=False
End With

Thanks,
David
 
D

David

Hi peter,

I would have stared at it for hours and not seen the syntax error. Thanks
for your help.

Thx,
David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top