"Ref_2" Argument Is Not Optional with CREATE.OBJECT Command

Last reviewed: November 2, 1994
Article ID: Q71072

SUMMARY

Page 40 of the "Microsoft Excel Function Reference" incorrectly indicates that the fifth argument ("ref_2") to the CREATE.OBJECT command is optional if you are creating a picture. However, you will encounter a macro error if you omit this argument.

MORE INFORMATION

The CREATE.OBJECT command is used in a macro to draw a graphic object on a sheet. The arguments used indicate the type and location of the object. Type 8 is used to create a picture (normally created by the camera tool). The "Microsoft Excel Function Reference" incorrectly states that the fifth argument ("Ref_2") is optional when creating a picture object.

"Ref_2" indicates in which cell the lower right corner of the object will be. If this argument is omitted, you will receive a macro error when the macro is run. Including this argument will eliminate the macro error, yet has no effect on the placement of the picture created.

REFERENCES

"Microsoft Excel Function Reference." Version 3.00, pages 40-41.


KBCategory: kbother
KBSubcategory:

Additional reference words: noupd


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 2, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.