Not appropirate
The FP VBA object mode is unique to FP
- See the FP VBA help for the correct method to include the credentials
(als example code for each method)
You need to open the local web first
expression.Open(szWebUrl, UserName, Password, WebOpenFlags)
Then publish it to remote
expression.Publish(DestinationUrl, PublishFlags, UserName, Password)
--
_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________
| You are going to have to "get" or "copy" the pages with a VB Script that includes the user
| name and password for the remote server, which means it takes much more than a one line
| macro
|
| You might have better luck over at:
|
| microsoft.public.scripting.vbscript
| or
| microsoft.public.vb.general.discussion
|
|
|
| --
| Steve Easton
| Microsoft MVP FrontPage
| 95isalive
| This site is best viewed............
| .......................with a computer
|
| | > That one-liner I mentioned is pretty much the meat of a macro I'd like to
| > write:
| >
| > ActiveWeb.Publish <url of web site>, fpPublishRemoteToLocal
| >
| > The situation we have is we are outside consultants for an organization's
| > web site. We don't have direct access to their production server. They have
| > set up a 'mirror' server for us to use to pull current pages from. It's
| > updated nightly with the current production content.
| >
| > What we're trying to do is to easily (via a macro or whatever else is
| > available) pull a sub-site or selected files off that mirror server to our
| > local machine, make our changes and publish them to our development machine
| > (from which they move to a test server and then to a zip file which gets sent
| > to the organization.)
| >
| > It seems like that "fpPublishRemoteToLocal" should do that. If not, what
| > other options are there?
| >
| > Dave
| >
| >
| >
| > "Steve Easton" wrote:
| >
| > > Anytime you Publish, the server ( or computer ) you are publishing "From" is the Local
| > > and the server you are publishing "To" is the Remote.
| > >
| > > So your permissions prompt is valid.
| > >
| > > Can you post a little more info about your "Macro."
| > >
| > >
| > > --
| > > Steve Easton
| > > Microsoft MVP FrontPage
| > > 95isalive
| > > This site is best viewed..................
| > > ...............................with a computer
| > >
| > >
| > > | > > > How can I write a macro that will refresh selected files on my local machine
| > > > from the web server?
| > > >
| > > > I've tried using:
| > > > ActiveWeb.Publish <url of web site>, fpPublishRemoteToLocal
| > > >
| > > > but that doesn't seem to do it. Nothing happens the first time it's run and
| > > > the second time it says I don't have permission to write the folder on the
| > > > server, which suggests that it's going from local-to-remote, not the other
| > > > way around.
| > > >
| > > > Any help would be appreciated. There doesn't seem to be much info available
| > > > on this kind of thing.
| > > >
| > > > Dave
| > > >
| > > >
| > >
| > >
| > >
|
|