XL2000: Visual Basic for Applications Procedure to Open or Activate a Workbook (213395)
The information in this article applies to:
This article was previously published under Q213395 SUMMARY
When you activate a workbook with a Visual Basic for Applications
procedure, the workbook must first be open. If the workbook is closed, you
will receive one of the following error messages:
Run-time error '1004':
Workbook method of Application class failed
- or -
Run-time error '9':
Subscript out of range
The Visual Basic procedure in the "More Information" section of this
article will activate Book2.xls if it is already open, or it will open and
activate Book2.xls if it is closed.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbdtacode kberrmsg kbhowto kbinfo kbProgramming KB213395 |
---|
|