FP VBA (macros) are only supported in the current user profile in Microsoft FrontPage.fpm at
%AppData%\Microsoft\FrontPage\Macros
If you are looking to make it global you would need to make it a com addin
See
http://msdn.microsoft.com/library/d...3_ta/html/odc_fpautomatingrepetitivetasks.asp
--
_____________________________________________
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
_____________________________________________
| Excellent, thank you very much
| This is something I can work on
|
| Now I only have to deal with the issue of locating the macro in trusted
| common location in the domain.
|
| In this w2k3 domain, they don not want to put up their own certificate
| authority now, not want to get external certificate.
|
| By default auto macro and scripts are to be located inside the appropriate
| office startup folders, otherwise unsigned scripts a and macros are treated
| not trusted.
|
| | > Hi jg,
| >
| > To accomplish you'll need to use an auto run macro, not intrinsic, in FP
| > itself. The auto run script could look for a command line parameter then
| > open the two files associated with it. After opening you could then walk
| > the HTML using the document object of FP to find the applet and insert it
| > into the .hta file.
| >
| > The auto run is implemented in a FP COM Add-in using the OnConnection
| > event handler with code similar to the following:
| >
| > On Error GoTo ERR_BAD_KEY
| > 'Get the key state of the left and right shift keys
| > iShift = GetKeyState(VK_SHIFT)
| > On Error Resume Next
| >
| > 'If shift is not pressed, run the Auto_Start routine in the FP Web.
| > If (GetSetting("FPX", "Options", "RunMacro", "1") = "1") Then
| > sMacro = GetSetting("FPX", "Options", "RunMacroName", "Auto_Run")
| > If (iShift And 128) <> 128 Then Application.Run sMacro
| > End If
| >
| > In this case the auto_run macro is not ran if the shift key is held down
| > when FP is started.
| >
| > HTH,
| >
| >
| > --
| > Mike -- FrontPage MVP '97 - '02
| >
http://www.websunlimited.com
| > FrontPage Add-in
| >
| >
| >
| > | >> hope this is the right NG.
| >>
| >> trying make it easy for users, I would like my bat file to bring up
| >> front page with two documents. So far I can make it to open only one
| >> document ( pathspec\something.shmtil) but can't find the way to specify
| >> more than one
| >>
| >> Actually, I would love to script the second document
| >> FrontPage will open the html,
| >> locate the single java applet
| >> grab the entire applet code section <applet.... to </applet> into
| >> clipboard
| >> open an hta and paste into an input area
| >>
| >>
| >> So far I have not found the way. I am still too much of beginner and not
| >> much budget, so I just have to be contend with opening the second
| >> document for now
| >>
| >>
| >
| >
|
|