Microsoft KB Archive/256080

= FP2000: How to Add a Save All Command to the File Menu Using VBA =

Article ID: 256080

Article Last Modified on 11/4/2002

-

APPLIES TO


 * Microsoft FrontPage 2000 Standard Edition

-



This article was previously published under Q256080



SUMMARY
This article describes how to add a Save All command to the File menu in FrontPage 2000 by using Microsoft Visual Basic for Applications (VBA).



MORE INFORMATION
To add a Save All command to the File menu, follow these steps:

 On the Tools menu, point to Macro, and then click Visual Basic Editor (or press ALT+F11). Insert a new module by clicking Module on the Insert menu. In the Properties window (press F4), change the name of the module to SaveAll .  Type the following in the Microsoft_FrontPage - SaveAll (Code) window:

Sub SaveAll Dim page As PageWindow For Each page In Application.ActiveWebWindow.PageWindows page.Save Next End Sub  On the File menu, click Close and Return to Microsoft FrontPage. On the Tools menu, click Customize, and click the Commands tab. In the Categories list, click Macros.</li> Use the drag-and-drop operation to copy Custom Menu Item from the Commands list to the File menu.</li> Click Modify Selection, and change the Name box from &Custom Menu Item to Save A&ll .</li> Click Modify Selection again, and click Assign Macro.</li> Click SaveAll on the list, and then click OK.</li> In the Customize dialog box, click Close.</li></ol>

For more information about how to use the sample code in this article, click the article number below to view the article in the Microsoft Knowledge Base:

212536 OFF2000: How to Run Sample Code from Knowledge Base Articles

Additional query words: front page fp2000 fp2k VBE VB

Keywords: kbinfo KB256080

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.