MPRJ4: Arguments Not Recorded for EditCopyPicture Method
  
PSS ID Number: Q128581
Article last modified on 07-21-1995
 
4.00
 
MACINTOSH
 

--------------------------------------------------------------------
The information in this article applies to:
 
 - Microsoft Project for the Macintosh, version 4.0
--------------------------------------------------------------------
 
SYMPTOMS
========
 
In Microsoft Project, when you turn on the Macro recorder, and you choose
the Copy Picture button from the Standard toolbar, the EditCopyPicture
method may be recorded without the object or forPrinter arguments.
 
CAUSE
=====
 
This behavior occurs because both the object and the forPrinter argument
for the EditCopyPicture method are optional, and are not recorded unless
you select an option other than the default.
 
For example, when you choose the Copy Picture button from the Standard
toolbar while the macro recorder is running, and you select the For Screen
option, the forPrinter argument is not recorded with the EditCopyPicture
method.
 
Note that when you record this same procedure in Microsoft Project for
Windows, both the option argument and the forPrinter arguments are
recorded. However, if you run the macro recorded in Microsoft Project for
the Macintosh in Microsoft Project for Windows or vice versa, the macro
runs correctly.
 
Note that although you do not need to edit the recorded macro in this case
to make it behave any differently, you can add the arguments to the macro
without causing any difference in performance:
 
   Sub Copy_Picture()
      EditCopyPicture object:=False, forPrinter:=False
   End Sub
 
Microsoft provides examples of Visual Basic procedures for illustration
only, without warranty either expressed or implied, including but not
limited to the implied warranties of merchantability and/or fitness for a
particular purpose. This Visual Basic procedure is provided 'as is' and
Microsoft does not guarantee that it can be used in all situations.
Microsoft does not support modifications of this procedure to suit customer
requirements for a particular purpose.
 
STATUS
======
 
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article. We are researching this problem
and will post new information here in the Microsoft Knowledge Base as it
becomes available.
 
REFERENCES
==========
 
For more information about the EditCopyPicture Method, choose the Search
button in the Visual Basic Reference and type:
 
   EditCopyPicture
 
KBCategory: kbprg kbcode
KBSubcategory: projmac
 
Additional reference words: 4.00
=============================================================================
Copyright Microsoft Corporation 1995.
