+ Reply to Thread
Results 1 to 1 of 1

Collect employee data from workbook and write data in another sheet

  1. #1
    Registered User
    Join Date
    06-25-2014
    Location
    Denmark
    MS-Off Ver
    365 (Win and Mac)
    Posts
    20

    Collect employee data from workbook and write data in another sheet

    Hi.

    I am trying to collect employee data from my workbook and write the data in two lines in another sheet. One line for salary and one line for food.

    I have made this code, that runs fine the first time it meets the conditions within the For loop.
    When it has written the text in the new sheet created it losses the values from the "strValues".
    I can see now that what I am trying to achieve is impossible because the data I am trying to write next time is not meeting the conditions.
    In the mainsheet, the employees are divided by fake headers where it should store the P-number, D-number etc for use in the employee lines later on, they change in every header.
    But how do I get the loop to change the values in the "strValues" and use it until it hits a Fake header again?

    I'ved tried to attach the worksheet, but there seems to be som kind of problem, so I have pastet a link and some screendumps.

    Please Login or Register  to view this content.
    Screenshot 2018-11-06 at 22.20.56.png
    Outcome.png

    The File
    https://www.excelforum.com/attachmen...1&d=1541540113
    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. Report sheet collect all data in all workbook
    By Mamud in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-15-2016, 07:26 PM
  2. Generate output employee data from input employee sheet
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-29-2015, 05:28 PM
  3. Replies: 2
    Last Post: 12-17-2013, 08:21 AM
  4. Need to write data from a row to another workbook sheet defined by cell value
    By newbie-excel in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-03-2013, 01:10 PM
  5. Replies: 4
    Last Post: 04-18-2013, 07:25 AM
  6. [SOLVED] new workbook (WB) from template sheet, name new WB from cell val, then write data from cel
    By stannard in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-10-2012, 06:01 PM
  7. collect data out listing xls to own workbook
    By GrandLake in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-03-2009, 09:41 AM

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