The information in this article applies to:
SUMMARYThis article explains how to create the appearance of a new instance of FrontPage using Visual Basic for Applications. MORE INFORMATIONFor more information about using the sample code in this article, click the article number below to view the article in the Microsoft Knowledge Base: Q212536 OFF2000: How to Run Sample Code from Knowledge Base Articles WARNING: ANY USE BY YOU OF THE CODE PROVIDED IN THIS ARTICLE IS AT YOUR OWN RISK. Microsoft provides this code "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. The FrontPage Application object is a single-instance object. Therefore, if you attempt to programmatically create a new instance of FrontPage 2000 when an instance is already running, a new instance is not created.Using the code below, you can create a new FrontPage window to create the appearance of a new instance of FrontPage. To use this macro, create a new user form and place a Command Button control on it. Name the Command Button "myButton" and add the following code to the form:
This code is intended to be run outside of FrontPage to create a new FrontPage application window using automation. This can be done with this code from another Office 2000 application or using Microsoft Visual Basic for Applications to automate FrontPage 2000. Additional query words:
Keywords : |
Last Reviewed: September 14, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |