View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Andrew Andrew is offline
external usenet poster
 
Posts: 358
Default Invalid Procedure Call or Argument - Run-time error '5'

Hello All,

A co-worker's is getting the following error, Run-time error '5' Invalid
Procedure Call or Argument when she executes the code below. When I run it
there is not error. We both have the same version of Excel and the same OS.

Does anyone have any idea why this is happening???

Sub crtHndouts()

ActiveWorkbook.PivotCaches.Add(SourceType:=xlDatab ase, SourceData:= _
"'CM02 Data'!A:AG").createPivotTable TableDestination:= _
"'[CM02 -Report.xls]Reports'!R10C1", TableName:="Data", _
DefaultVersion:=xlPivotTableVersion10
.........

End Sub