=> Create New Html-Dokument with Frontpage VBA

A

Alexander

Create New Html-Document with Frontpage VBA
===================================

It seems that Frontpage VBA can't create a new Dokument, but only can do
a copy of a present file or import a file with:

Application.ActiveWeb.RootFolder.Folders("TEST").Files.Add
"http://xyz/test.htm"

Is this correct?
If not, which is the correct command to create a new and empty HTML
document?

Thanks
Alexander
 
S

Stefan B Rusynko

See
http://msdn.microsoft.com/library/d...sp?frame=true#fpidxcreatingwebsitescreateprog




| Create New Html-Document with Frontpage VBA
| ===================================
|
| It seems that Frontpage VBA can't create a new Dokument, but only can do
| a copy of a present file or import a file with:
|
| Application.ActiveWeb.RootFolder.Folders("TEST").Files.Add
| "http://xyz/test.htm"
|
| Is this correct?
| If not, which is the correct command to create a new and empty HTML
| document?
|
| Thanks
| Alexander
|
|
|
|
 
M

MD Websunlimited

Hi Alexander,

No that is not correct. Page windows in FP are associated with a file, which may be should be temporary until they are saved.
You would create a temp file then add it to the pagewindows collection using the add method.

The document is then referenced from the page.

--
Mike -- FrontPage MVP '97-'02
http://www.websunlimited.com
J-Bots Plus 2002 87 components for FrontPage
http://www.websunlimited.com/order/Product/JBP2002/jbp_help_dir.htm
FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible
 
M

Mike Mueller

Alexander,
I noticed that you always post with a => prefix on the
subject line. I am not going to play authority figure here,
I am just going to tell you that it obscures searching by
subject.

Mike
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Top