+ Reply to Thread
Results 1 to 4 of 4

Macro to Insert a row across a range of worksheets

  1. #1
    Registered User
    Join Date
    04-15-2014
    Location
    Washington, USA
    MS-Off Ver
    Excel 2003
    Posts
    12

    Macro to Insert a row across a range of worksheets

    Hello,

    I have run into a problem with a Pivot Table overwriting other content when new data is added and refreshed.

    This pivot table is included across a range of "Product" worksheets. To resolve this issue I would like a macro to insert a new row below the pivot table , this way when new content is added the pivot table will not overwrite the content below it.

    The Pivot Table data is on the "Client" worksheet. Each Product worksheet includes a Pivot Table referencing the the Client data.
    I would like to force a user to add a new client data with a macro this way I can force a new row to be inserted across All "Product" worksheets.

    Attached is an example.

    Thanks in advance for any help.

    Matt
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,014

    Re: Macro to Insert a row across a range of worksheets

    Not sure what you are trying to do, but change your macro "Add_New_Client" to this:

    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    04-15-2014
    Location
    Washington, USA
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Macro to Insert a row across a range of worksheets

    Thanks Bernie this is perfect. Is there a way for the focus to land on the Client Worksheet where the new row was inserted?

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,014

    Re: Macro to Insert a row across a range of worksheets

    Try this version

    Please Login or Register  to view this content.
    Last edited by Bernie Deitrick; 04-16-2014 at 01:19 PM.

+ 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 Button - insert/delete across multiple worksheets
    By lorigies in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-19-2014, 06:18 PM
  2. [SOLVED] Macro to insert values in a range
    By Taislin in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-14-2013, 02:12 PM
  3. Replies: 1
    Last Post: 01-19-2012, 04:34 PM
  4. [SOLVED] Insert And Delete Worksheets In The Same Macro
    By AlexRoberts in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-28-2011, 03:42 AM
  5. Macro to insert rows within a specified range
    By asha3010 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-10-2010, 03:45 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