Results 1 to 2 of 2

Thread: http://www.vbworld.com/internet/tip501.html

  1. #1
    Guest
    Can anyone help me out with this tip?
    It works great for snagging HTML from a page, but you seem to have to hardcode the URL. I'd like to be able to specify the URL with a variable.

    Instead of :
    MsgBox DownloadFile("http://www.vbworld.com", "c:\vbworld.htm")

    I'd like to be able to:

    URL = "http://www.vbworld.com"
    MsgBox DownloadFile(URL, "c:\vbworld.htm")

    When I do that, it gives me a byref error.

    Thanks for the help.

  2. #2
    Hyperactive Member marnitzg's Avatar
    Join Date
    Oct 2000
    Location
    South Africa
    Posts
    372
    You need to declare URL as a string

Posting Permissions

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



Click Here to Expand Forum to Full Width