+ Reply to Thread
Results 1 to 2 of 2

Error in Macro Code

  1. #1
    Forum Contributor
    Join Date
    07-19-2017
    Location
    usa
    MS-Off Ver
    2016 Professional Plus
    Posts
    128

    Error in Macro Code

    Hello everyone! I have recorded a macro in excel. It's a very long code but the the following piece of code error appears. I have recorded the macro twice but the issue is same. The error screenshot is in attachment. Please help me resolve this issue. Thanks and Regards

    ActiveWorkbook.PivotCaches.Create(SourceType:=xlDatabase, SourceData:= _
    "Finder!R1C6:R65536C13", Version:=xlPivotTableVersion10). _
    CreatePivotTable TableDestination:="Pivote Tables!R1C1", TableName:= _
    "PivotTable6", DefaultVersion:=xlPivotTableVersion10
    Attached Images Attached Images

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Error in Macro Code

    Check the TableNAme, make sure it's still the same.
    Unless you explictly give it a name the name changes with every macro run
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Macro Code Error - Please Help
    By mtutino in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-25-2020, 06:04 AM
  2. [SOLVED] Macro Error Code: 13 or 438
    By pacosalasv in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-22-2019, 02:00 PM
  3. [SOLVED] how to add error code to my macro
    By dmcgov in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-04-2016, 08:29 AM
  4. Error In Macro Code
    By greenfalcon in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-12-2013, 10:00 PM
  5. Autofilter Macro Failing - Run-time error 91 - full macro code is attached
    By evamarie in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-07-2013, 02:36 PM
  6. Macro code error: code is near complete
    By kashshaikh in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-17-2011, 03:22 PM
  7. Macro code error
    By marshall23 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-05-2011, 03:30 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1