Results 1 to 6 of 6

If and go to

Threaded View

  1. #3
    Registered User
    Join Date
    04-25-2012
    Location
    Singa[pre
    MS-Off Ver
    Excel 2003
    Posts
    49

    Re: If and go to

    Thank you for your code.
    In J1, put ^dji
    at .Name = _
    compile error:
    Invalid or unqualified reference
    If Range("H1").Value = "" Then

    With Worksheets("Sheet1").QueryTables.Add(Connection:= _
    "URL;http://ichart.finance.yahoo.com/table.csv?s=" & _
    Worksheets("Sheet1").Range("J1").Value & "&a=10&b=13&c=2011&d=06&e=6&f=2013&g=w&ignore=.xlsx" _
    , Destination:=Worksheets("Sheet1").Range("$A$1"))
    else



    With Worksheets("Sheet1").QueryTables.Add(Connection:= _
    "URL;http://ichart.finance.yahoo.com/table.csv?s=" & _
    Worksheets("Sheet1").Range("J1").Value & "&a=10&b=13&c=2011&d=06&e=6&f=2013&g=m&ignore=.xlsx" _
    , Destination:=Worksheets("Sheet1").Range("$A$1"))
    End If[/code][/QUOTE]
    Last edited by asdzxc; 05-19-2012 at 10:38 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1