+ Reply to Thread
Results 1 to 2 of 2

Pivot Table creation in VBA Macro

  1. #1
    Registered User
    Join Date
    08-19-2021
    Location
    australia
    MS-Off Ver
    2016
    Posts
    1

    Pivot Table creation in VBA Macro

    Hi,

    I'm having issues creating a pivot table inside a vba macro. I seem to be geeting a Run time error '5' everytime i try to run the code. Could anyone please help?

    This is the code that seems to be giving me troubles.

    Please Login or Register  to view this content.
    Last edited by alansidman; 08-19-2021 at 04:23 AM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,885

    Re: Pivot Table creation in VBA Macro

    Code Tags Added
    Your post does not comply with Rule 2 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. Automating Pivot table and pivot chart creation if data table names unknown
    By Vegiepie2016 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-04-2016, 11:52 AM
  2. Problems with Summary and Pivot Table creation macro
    By Handyann in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-07-2015, 09:31 AM
  3. Running Macro always has error at pivot table creation
    By culverhr in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-29-2012, 12:12 PM
  4. Pivot Table creation with Macro
    By elevisse in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-25-2012, 02:19 AM
  5. Trouble with pivot table creation macro
    By clawlan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-09-2010, 10:25 AM
  6. Macro for Pivot Table Creation
    By greenmonke in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-12-2010, 10:05 PM
  7. Pivot Table Creation
    By Rob in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-26-2006, 09:10 AM

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