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

  • Thread starter Thread starter youngman
  • Start date Start date
Y

youngman

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

thank you.
 
A more difficult way would be to use the Microsoft Web Browser Control.
 
Or this:


Public Sub Browse(Optional URL As String, Optional winstyle As
VbAppWinStyle)
'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
winsize.
 
Public Sub Browser(URL As String)
CreateObject("Shell.Application").ShellExecute URL
End Sub
 
I want to link a htm file instead of a URL.

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
"filename.htm#bookmarkname"
 
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.
 
Back
Top