Frontpage öffnen...
16.08.2006 09:31:45
Luschi
aus Excel möchte ich Frontpage öffnen, um zur gerade aktiven Tabelle einen Hilfetext zu schreiben.
Das hier ist Original-MS-Vbacode:
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbafpw11/html/fpobjApplication_HV05282866.asp)
To
use Automation to control FrontPage from another application, use the CreateObject or GetObject function to return a FrontPage Application object.
The following Microsoft Word Visual Basic for Applications (VBA) example starts FrontPage, opens an existing Web site, and closes the Web site.
Private Sub StartFrontPage()
Dim myNewFP As Variant
Set myNewFP = CreateObject("FrontPage.Application")
myNewFP.Webs.Open ("C:\MyWebs\Adventure Works")
myNewFP.Webs.Close "(C:\MyWebs\Adventure Works")
Set myNewFP = Nothing
End Sub
Doch bei jedem Aufruf bring er die Fehlermeldung:
Serverfehler: Es existiert keine WebSite mit dem Namen ...
Die Datei existiert aber, was ich mit dem Dir-befehl vorher teste.
Hat hier jemand eine bessere Lösung
fragt sich Luschi
aus klein-Paris
PS: Auch in WinWord schlägt dieses Makro fehl!