+ Reply to Thread
Results 1 to 4 of 4

Pivot Table placement, cut and paste at range

  1. #1
    Forum Contributor
    Join Date
    10-09-2012
    Location
    Adelaide, South Australia
    MS-Off Ver
    Excel 2010
    Posts
    135

    Pivot Table placement, cut and paste at range

    Hi guys,
    below is some code I am trying to troubleshoot. Essentially I am trying to place pivot tables so they do not cause errors when refreshing and bump into each other.
    I have successfully moved the pivot with the code below:

    Please Login or Register  to view this content.
    but now I am trying to move the title directly above the pivot to another location.
    When I run the below code it selects the whole range above not just the cell directly above the first column of the pivot: Please help!

    Please Login or Register  to view this content.
    Last edited by wacky_diva; 02-14-2017 at 09:48 PM.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,651

    Re: Pivot Table placement, cut and paste at range

    ActiveSheet.PivotTables("PivotTable3").TableRange1.Offset(-1, 0).Resize(1, 0).Select
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Contributor
    Join Date
    10-09-2012
    Location
    Adelaide, South Australia
    MS-Off Ver
    Excel 2010
    Posts
    135

    Re: Pivot Table placement, cut and paste at range

    Hi AlphaFrog
    It doesn't seem to work, would I be better off putting a named range over the top of the first header in the pivot?

  4. #4
    Forum Contributor
    Join Date
    10-09-2012
    Location
    Adelaide, South Australia
    MS-Off Ver
    Excel 2010
    Posts
    135

    Re: Pivot Table placement, cut and paste at range

    I worked it out
    Using named ranges in the first column of the header row made it simpler for me.

    Please Login or Register  to view this content.
    Thanks

+ 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] Copy and paste formula outside pivot table using information from table
    By batjl9 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-01-2014, 07:10 AM
  2. Pivot table field placement/layout problem
    By HannahKirk in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 01-21-2014, 09:50 PM
  3. Macro to Copy Pivot Table and Paste a Regular Data Table in the Same Position
    By webfeet2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-01-2013, 06:34 AM
  4. Replies: 5
    Last Post: 01-06-2012, 04:35 PM
  5. Return pivot table range...not the data table, the PIVOT TABLE!
    By Air_Cooled_Nut in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-26-2008, 01:07 PM
  6. Pivot Table Grand Total Placement
    By William Horton in forum Excel General
    Replies: 2
    Last Post: 11-17-2005, 05:10 PM
  7. Pivot Table custom column placement
    By metrueblood in forum Excel General
    Replies: 1
    Last Post: 08-03-2005, 05:05 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