Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I made a javascript/activeX browser

Status
Not open for further replies.

gph1

Technical User
May 19, 2002
73
CA
I made a javascript/activeX browser based program that automates my web page production. A new page that has "Include Pages" in it requires that FrontPage is opened to the folder that the page is saved in. Otherwise the "Include Pages" won't work.

I can open FrontPage from the program but would like FrontPage to open a specific web on start up. Can this be done with a macro or do I need an Add-in? I'm a VB novice and have been searching the MSDN site but am not sure how to approach this.

Thank you for your help
 
Sorry for the lack of a title in this thread. I screwed up while posting.

I'm getting close to what I need. This function works from my VB editor but when I try to run it from an HTML page I get the error "Expected end of statement" Could someone please explain what I'm doing wrong?

<html>
<head>
<title></title>
<script language=&quot;VBScript&quot;>
Sub WebOpener()
Dim objFP As FrontPage.Application
Dim objWeb As Web
Set objFP = New FrontPage.Application
Set objWeb = objFP.Webs.Open(&quot;C:\Sites\Site&quot;)
Set objFP = Nothing
End Sub
</script>
</head>
<body>
<input type=button language=&quot;VBScript&quot; onClick=&quot;WebOpener()&quot; value=&quot;Open Web&quot;>
</body>
</html>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top