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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating PHP Templates using FrontPage VBA

Status
Not open for further replies.

peepntom

Programmer
Joined
Dec 12, 2004
Messages
1
Location
US
Hello,

First off, I'm really new to VBA, but I'm pretty comfortable with VB.NET.

I'm really just trying to see if what I want to do is possible.

I use FrontPage for a lot of my programming because it's accessible to me. Thus, I am learning FrontPage VBA to help automate some of the things I do.

I would like to be able to run a VBA routine that opens a new blank text file in FrontPage, and enters a template I can use for my PHP files.

For instance, I want to run a macro like this:

Code:
Sub createPHPClassTemplate ( ByVal ClassName as String, ByVal ParentClassName as String )
     ...
End Sub

and have it create a new text (read: non-html) file write in it something like this:

Code:
<?php

    /*
    ... comments
    */

     class ClassName extends ParentClass
          {
          }

?>

The problem I'm having is that FrontPage 2003 VBA objects really don't seem to be able to write to modify anything beyond HTML elements.

Before I dig any further, I want to know if I even can do what I'm talking about.

Thanks in advance!
 
Web stuff rarely comes up in this forum, and I've never seen anyone discussing automating FrontPage with VBA here. You may have better luck by posting to another forum. . .

VBAjedi [swords]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top