Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default macro error when shared

I have a macro-driven workbook which I sent to a client, but when she tries
to run it she gets an error in the initial portion of the macro (as shown
below)...I'm not sure if this is enough info to understand the issue or not.

ActiveWorkbook.PivotCaches.Add(SourceType:=xlDatab ase, SourceData:= _
"TendercardReport!R1C1:R100C49").CreatePivotTa ble
TableDestination:="", _
TableName:="PivotTable10", DefaultVersion:=xlPivotTableVersion10

The macro runs a pivot table from a table of data and then transposes the
vales into another output table.

Appreciate any help or thoughts...

M
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 107
Default macro error when shared

Make sure that the SourceData and TableDestination arguments are
correct - if the Workbook has been renamed it will cause errors here.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default macro error when shared

Thanks for the response first of all.

The error is in fact a "Compile Error, Named Argument Not Found"

And it highlights Default Version in the portion of code below:

ActiveWorkbook.PivotCaches.Add(SourceType:=xlDatab ase, SourceData:= _
"TendercardReport!R1C1:R100C49").CreatePivotTa ble
TableDestination:="", _
TableName:="PivotTable10", DefaultVersion:=xlPivotTableVersion10
ActiveSheet.PivotTableWizard TableDestination:=ActiveSheet.Cells(3, 1)

Any help again would be much appreciated.

M

"JakeyC" wrote:

Make sure that the SourceData and TableDestination arguments are
correct - if the Workbook has been renamed it will cause errors here.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 227
Default macro error when shared

Just to hazard a guess: Is your client running an earlier version of
Excel?

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default macro error when shared

She is...I wasn't sure how to accommodate that...is there anything I should
have/ can do?

M

"Mark Lincoln" wrote:

Just to hazard a guess: Is your client running an earlier version of
Excel?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Shared workbook error message SteveR Excel Worksheet Functions 8 December 1st 11 10:24 PM
Shared workbook - Locked Error Elizabeth Excel Discussion (Misc queries) 0 October 11th 06 06:00 AM
Macro error when file is shared Eric @ SEASH, Evansville Excel Discussion (Misc queries) 2 August 25th 05 03:26 AM
Macro in Shared workbook - Runtime error Mick[_6_] Excel Programming 0 February 26th 04 11:56 AM
Shared file - macro error Tom Ogilvy Excel Programming 0 August 15th 03 10:59 PM


All times are GMT +1. The time now is 05:26 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"