Quantcast
Channel: VBForums - ASP, VB Script
Viewing all articles
Browse latest Browse all 688

Run Time Error 1044

$
0
0
I am trying to run the code below but I keep getting a runtime error 1044. I did some research and some people say its because of internet connection but I can't seem to solve the issue. Any help is much appreciated.

Code:

Sub test()

    Sheet2.Select
 
    Sheet2.Cells.Clear
   
   
    qurl = "https://finance.yahoo.com/quote/GOOGL?p=GOOGL"

    With Sheet2.QueryTables.Add(Connection:="URL;" & qurl, Destination:=Sheet2.Range("A1"))
 
        .BackgroundQuery = True
        .Refresh BackgroundQuery:=False

    End With

End Sub


Viewing all articles
Browse latest Browse all 688

Trending Articles