Results 1 to 20 of 20

Gather data that don't exist from different worksheets to another workbook

Threaded View

  1. #1
    Registered User
    Join Date
    11-18-2019
    Location
    Paris
    MS-Off Ver
    Office 2016
    Posts
    80

    Gather data that don't exist from different worksheets to another workbook

    Hi,

    I'm having trouble with a macro aiming at gathering data that don't exist to another existing workbook.
    In my example, I have two sheets in the file "Input weeks". In each sheet, I have a list of weeks with a code for every days. If the week already exists in my database, then I get a code, but if it doesn't I want to add the new week created in my database "Catalogue weeks" at the end of the table to a new row.

    For instance, in the sheet "Mail 1": the week "J000;D139;JRHE;A041;A043;D137;D137" already exists and the code is E351.
    But the week "J001;J002;J003;J004;J005;J006;J007" does not exist and I would need to copy this week to the workbook "Catalogue weeks". Then, in the workbook "Catalogue weeks", I would give a code to this
    newly created week and I would need this new code to appear on the sheet "Mail 1".

    Last but not least, I can have several sheets named "Mail 1", "Mail 2", "Mail 3"... and I would need to loop accross all sheets.

    Could you please help me?

    If you have any question, feel free to ask.

    Many thanks!

    Okela
    Attached Files Attached Files
    Last edited by okela; 06-02-2020 at 02:10 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Gather data multiple sheets into 1 workbook
    By Nnex1996 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-22-2019, 03:37 AM
  2. macro to let user know if one of 5 worksheets do not exist in active workbook
    By ab8088 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-05-2016, 07:43 PM
  3. [SOLVED] Trying to use IF function to gather specific data from 2 worksheets
    By Womble2011 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-07-2012, 07:32 AM
  4. [SOLVED] VBA code to gather data from multiple worksheets in the same folder-Master List
    By lax2734 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-23-2012, 03:07 PM
  5. copying worksheets from one workbook to another and overwriting if they exist already
    By tinkerbelle in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-19-2010, 08:55 AM
  6. working with multiple worksheets to gather data
    By mrggutz in forum Excel General
    Replies: 4
    Last Post: 03-26-2010, 03:59 PM
  7. [SOLVED] Copy Worksheet to a new Workbook creating if it doesn't exist and add more Worksheets if it does exist
    By pete.bastin@btopenworld.com in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-18-2006, 01:10 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