run time error 5 in macro

TM61404

New Member
Joined
Sep 22, 2015
Messages
3
hello,

i am trying to debug this code and am having a really hard time trying to find the root of this issue. the macro creates a simple pivot table and im not sure if there is a nother pivot table that has the same name and where to even locate this pivot table. i thought i started from scratch a few times by completely rebulilding the macro to no avail please help. again the error message is run time error 5 invalid procedure call or argument

ActiveWorkbook.PivotCaches.Create(SourceType:=xlDatabase, SourceData:= _
"FRONT END!R4C2:R164C8", Version:=xlPivotTableVersion14). _
CreatePivotTable TableDestination:="FRONT END!R4C13", _
TableName:="PivotTable3", DefaultVersion:=xlPivotTableVersion14
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
hello,

i am trying to debug this code and am having a really hard time trying to find the root of this issue. The macro creates a simple pivot table and im not sure if there is a nother pivot table that has the same name and where to even locate this pivot table. I thought i started from scratch a few times by completely rebulilding the macro to no avail please help. Again the error message is run time error 5 invalid procedure call or argument

activeworkbook.pivotcaches.create(sourcetype:=xldatabase, sourcedata:= _
"front end!r4c2:r164c8", version:=xlpivottableversion14). _
createpivottable tabledestination:="front end!r4c13", _
tablename:="pivottable3", defaultversion:=xlpivottableversion14


i figured it out. It was due to the words front end not having an underscore in between them
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,692
Members
449,117
Latest member
Aaagu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top