Knowledge Base

Run-time error with WindowNewWindow macro if window hidden

Article ID: 173176

Article Last Modified on 1/20/2007


APPLIES TO


This article was previously published under Q173176

SYMPTOMS

When you use the WindowNewWindow command in a macro, you receive the following run-time error:
Run-time error '1100'
This method is not available in this situation.

CAUSE

This error occurs if the document window is hidden.

NOTE: In Microsoft Project, you can hide a document window using the Hide command on the Window menu or through a macro.

RESOLUTION

To prevent the run-time error, open at least one file (window) before you run the macro or unhide any hidden windows by clicking Unhide on the Window menu.

Additional query words: PRJ2002 PRJ2003 PRJ2007 prj2000 PRJ

Keywords: kbbug kbpending kbprogramming kbusage KB173176