+ Reply to Thread
Results 1 to 3 of 3

Copying blank table to all sheets with several exceptions

  1. #1
    Registered User
    Join Date
    01-31-2019
    Location
    Australia
    MS-Off Ver
    2018
    Posts
    34

    Copying blank table to all sheets with several exceptions

    Hi guys,

    I'd like to copy the same blank table format to all sheets in a workbook except sheets named 'Frozen' 'Dry' 'Fresh' 'Utensils and Packaging' 'Cleaning' 'Uniform' 'First Aid' 'Warehouse Usage' 'F&F' 'Racking 1ST person' I'm assuming this would have to be done with VBA? Cheers
    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: Copying blank table to all sheets with several exceptions

    You have provided the answer yourself, you say copy the table to all worksheets except .... and yes you will need VBA to do that.
    The solution is simple, start the macro recorder and do it for one sheet, you select the table and copy it it to the worksheet you want. stop the macro recorder.
    Read the generated VBA code and the edit it to loop though all the available worksheets and if the worksheet's name is not one of the 'exceptions' paste the table etc.

    The loop for the worksheets is something like

    Please Login or Register  to view this content.
    You must however add checks to avoid tha worksheet that already contains the table and well ... try it out.
    If you have the recorded macro you can also attach that code and see if we can help from there or attach the file
    ---
    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

  3. #3
    Registered User
    Join Date
    01-31-2019
    Location
    Australia
    MS-Off Ver
    2018
    Posts
    34

    Re: Copying blank table to all sheets with several exceptions

    Thanks very much!

+ 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] hide all sheets besides exceptions
    By esbencito in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-07-2018, 09:16 AM
  2. [SOLVED] Copying multiple sheets to an array (Including blank cells)
    By Scoobster_doo in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-27-2017, 06:52 PM
  3. Comparing Multiple Columns on 2 sheets and report Exceptions on 3rd Sheet
    By KrystalQ in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-24-2014, 11:41 AM
  4. VBA to compare data on two sheets and create an exceptions report on the third
    By riptake in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-05-2014, 06:06 AM
  5. [SOLVED] Inserting blank row in table without copying formula
    By bbmillions in forum Excel General
    Replies: 3
    Last Post: 03-22-2013, 01:42 PM
  6. Lookup table with exceptions?
    By gavster in forum Excel General
    Replies: 7
    Last Post: 04-07-2009, 08:32 AM
  7. macro to sort sheets with exceptions
    By d0wnt0wn in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-17-2008, 02:47 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