+ Reply to Thread
Results 1 to 3 of 3

Add multiple rows to table for timesheet/timetable management

  1. #1
    Registered User
    Join Date
    10-21-2019
    Location
    Udine, Italy
    MS-Off Ver
    365
    Posts
    1

    Add multiple rows to table for timesheet/timetable management

    Good morning,
    I have been following you for some time and I steal some advice for some scripts, but now I need more help.
    I have a worksheet like attached file, where in the first sheet I have a table with the list of employees and the times of entry and exit. I need a script that adds the times I fill out every day to the end of the database sheet. With the macro below I can add a row, but the number of employees can change and some days some times can be empty. How can I avoid adding empty rows and only adding rows with compiled data?

    With this script I cand add a single row... Need to copy that script for each row?

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    01-14-2013
    Location
    Austria
    MS-Off Ver
    2016 / 2019
    Posts
    339

    Re: Add multiple rows to table for timesheet/timetable management

    you can do the whole in one

    Please Login or Register  to view this content.
    Please be aware that there is no error handling included. Also if you call the macro twice you have doubled your dataset (duplicates).

    cheers,
    Guenter

  3. #3
    Valued Forum Contributor
    Join Date
    06-29-2014
    Location
    Australia
    MS-Off Ver
    MSO 365
    Posts
    1,098

    Re: Add multiple rows to table for timesheet/timetable management

    Hello Aledre,

    Here is another option:-
    Please Login or Register  to view this content.
    This is a worksheet_change event code and needs to be placed into the worksheet module. To implement this code:-

    - Right click on the "Inserimento" sheet tab.
    - Select "View Code" from the menu that appears.
    - In the big white code field that then appears, paste the above code.

    I've attached your sample workbook with the code implemented.


    In an attempt to simplify this for you, you'll see that in Column P ( I've just named this column "CHECK") of the "Inserimento" sheet I have placed a Yes/No drop down box in each cell (you'll obviously only need to select "Yes"). Once you are happy that all cells in any row are properly filled in, select "Yes" and move on to the next row. You'll notice that as soon as you select "Yes", the row of data will be transferred to the "DATABASE" sheet instantly.
    This will happen row by row only and when and if you decide that any row of data needs to be transferred over.

    I hope that this helps.

    Cheerio,
    vcoolio.
    Attached Files Attached Files

+ 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. Replies: 3
    Last Post: 06-05-2019, 01:18 PM
  2. [SOLVED] Formula to copy and paste multiple rows while skipping blank rows in the table
    By teton88 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-07-2018, 02:16 PM
  3. Date Stamp within Excel table - Changes in multiple rows and columns and new rows added
    By jarheadmctavish in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-09-2016, 03:22 PM
  4. Timetable Management
    By Ben44k in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-07-2014, 02:14 PM
  5. Timetable development with INDEX MATCH ROW formula using multiple criteria
    By wyndland in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-02-2013, 01:03 AM
  6. Replies: 1
    Last Post: 11-29-2012, 06:24 PM
  7. Time Table management
    By User3 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-06-2011, 02:35 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