+ Reply to Thread
Results 1 to 3 of 3

Insert formatted Pivottable from Excel to Word

  1. #1
    Registered User
    Join Date
    10-31-2020
    Location
    Denmmark
    MS-Off Ver
    Office 365
    Posts
    2

    Insert formatted Pivottable from Excel to Word

    Hi there

    I have been working with VBA for a relatively short time, so forgive me if my question according to VBA is a bit silly.

    I have made a template in Word where I have placed bookmarks. My idea was to export from Excel directly to this template. On a weekly basis I import data from CSV to a constant Excel template and from this excel file I would export to a Word document which is a template with selected areas where data from Excel is inserted. I think this process works really well, but I am tired of my pivot tables being imported with visible filters (Filters in pivot tables are placed above even pivot tables). In that case, I have to delete these lines manually in Word. This in itself is not a huge problem, but I'm sure this can be solved quite automatically so that the pivot tables are imported without this "filter line"

    I have found the code below on the web which inserts my pivot table just the way I would like it. Unfortunately, I am not competent enough to rewrite my code with the code I found online. Hope you can help me (:

    The code below inserts the pivot table perfectly:

    Please Login or Register  to view this content.
    This Code is my own and inserts the parts from Excel to
    Word absolutely perfect, except for the visible filter line from the PivotTable which unfortunately is also included in Word.

    Please Login or Register  to view this content.
    Last edited by Netzup; 10-31-2020 at 02:32 PM. Reason: Admin

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Insert formatted Pivottable from Excel to Word

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)

  3. #3
    Registered User
    Join Date
    10-31-2020
    Location
    Denmmark
    MS-Off Ver
    Office 365
    Posts
    2

    Re: Insert formatted Pivottable from Excel to Word

    Thank you for sharing the information I have tried to do as required

+ 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. [SOLVED] Can PivotTable sheets be automatically formatted without macros?
    By AccountingJ in forum Excel General
    Replies: 4
    Last Post: 09-16-2020, 03:51 PM
  2. Having excel export a formatted word document
    By rockthecasbah121 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-08-2016, 04:26 PM
  3. Pull data from Excel into a formatted word Doc, Is it possible?
    By ervinr82 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-24-2015, 12:18 PM
  4. Excel 2013 Automatically insert a row when the last formatted row is used
    By lisakay in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-21-2013, 02:46 PM
  5. Replies: 0
    Last Post: 11-22-2010, 11:13 PM
  6. Bringing formatted word content into excel cell
    By zkazi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-15-2009, 02:33 PM
  7. [SOLVED] insert a formatted row in excel [office for xp 2002]
    By E Martin in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-07-2005, 11:06 PM

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