PRJ4: "Argument value not valid" with Recorded Macro
  
PSS ID Number: Q132091
Article last modified on 08-24-1995
 
4.00    | 4.00
 
WINDOWS | MACINTOSH
 

--------------------------------------------------------------------
The information in this article applies to:
 
 - Microsoft Project for Windows, version 4.0
 - Microsoft Project for the Macintosh, version 4.0
--------------------------------------------------------------------
 
SYMPTOMS
========
 
When you run a recorded macro, the following message may be displayed:
 
   Run-time error '1101'
   Argument value not valid
 
CAUSE
=====
 
This error can occur if you press SHIFT+F8 to add more to the active
selection, and you then use the UP ARROW or DOWN ARROW key to select data.
 
WORKAROUND
==========
 
To work around this problem, modify the macro so the SelectTaskField method
does not include both the Extend and Add arguments. For example, if the
macro recorder writes the method similar to
 
   SelectTaskField Row:=1, Column:="Name", Extend:=True, Add:=True
 
remove the Extend argument.
 
STATUS
======
 
Microsoft has confirmed this to be a problem in the 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.
 
MORE INFORMATION
================
 
When Microsoft Project is recording a macro and the shortcut keys mentioned
above are used, the Macro Recorder records a SelectTaskField method and
includes the arguments Add:= True and Extend:= True. The Add and Extend
arguments are mutually exclusive parameters and cannot be used together.
 
KBCategory: kbprg kbcode
KBSubcategory:
 
Additional reference words: 4.00 quits syntax
 
=============================================================================
Copyright Microsoft Corporation 1995.
