how to open an htm(homepage file) file in autocad vba

Discussion in 'AutoCAD' started by youngman, Aug 7, 2003.

  1. youngman

    youngman Guest

    i wonder how to open an htm(homepage file) file in autocad vba.
    maybe someone can help me

    thank you.
    youngman, Aug 7, 2003
  2. youngman

    Tim Riley Guest

    Tim Riley, Aug 7, 2003
  3. youngman

    Eric Stewart Guest

    A more difficult way would be to use the Microsoft Web Browser Control.
    Eric Stewart, Aug 7, 2003
  4. youngman

    Ed Jobe Guest

    Or this:

    Public Sub Browse(Optional URL As String, Optional winstyle As
    'opens IE in last WinStyle if WinStyle is not supplied

    'Nav to home page if url is blank
    If Not URL = "" Then URL = " " & URL
    'make sure your path to IE is correct
    Shell "C:\Program Files\Internet Explorer\IEXPLORE.EXE" & URL, winstyle
    End Sub

    The only thing is that is is hardcoded for IE, but thats all we use. But it
    has the advantage over the Browser command in that you can specify the
    Ed Jobe, Aug 7, 2003
  5. Public Sub Browser(URL As String)
    CreateObject("Shell.Application").ShellExecute URL
    End Sub
    Tony Tanzillo, Aug 7, 2003
  6. youngman

    Eric Stewart Guest

    Eric Stewart, Aug 8, 2003
  7. A URL is just a string that identifies a file somewhere
    on the internet or your local computer or network. It
    can be the path/filename of an HTML file.

    To link to a bookmark inside a page, just use
    Tony Tanzillo, Aug 8, 2003
  8. youngman

    youngman Guest

    thank you .
    i tried to use "filename.htm#bookmarkname"
    but i failed.
    i am very sorry ,but could you tell me anything more.

    thanks a lot.
    youngman, Aug 8, 2003
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 (here). After that, you can post your question and our members will help you out.