FP2000: How to Programmatically Save All Open Pages That Have Changed
This article was previously published under Q237585 SUMMARY
This article describes how to write a macro in FrontPage 2000 that saves all open pages that have been changed. Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. 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 (http://support.microsoft.com/kb/212536/EN-US/)
OFF2000: How to Run Sample Code from Knowledge Base Articles
MORE INFORMATION
The Save All command does not exist in FrontPage 2000. However, you can easily implement it by using Visual Basic for Applications. The following code checks to see if any changes have been made to each open file since the last save. If changes have been made, it saves the file. This code requires that a web is open.
Note About the CodeThe Save method of the PageWindow object could have been used to save the pages. However, the Save method will not save a page if the page has never been saved since its creation (for example, new_page_1.htm). In that case, the SaveAs method must be used to save the unsaved page. Because the SaveAs method does not allow you to display a SaveAs dialog box to save the new page under a new name, this example chose to use the Execute method to save the pages.
| Article Translations
|

Back to the top
