+ Reply to Thread
Results 1 to 8 of 8

Macro that generates new work sheet with people and tasks they perform

  1. #1
    Registered User
    Join Date
    08-11-2013
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    4

    Question Macro that generates new work sheet with people and tasks they perform

    Hello All,
    I have spent many hours on YouTube trying to write a simple macro that would help me with my reports that I have to run and data-manipulate manually every month. I am afraid that this macro exceeds my current knowledge and, as suggested and highly recommended by one of my friends, I am totally dependent on ExcelForum specialists.
    What I am looking for is a macro that would generate a separate worksheet and populate all names and tasks people perform. I have attached a spread sheet with my small database example just to give you an idea.
    The main source (database) I receive every month is a simple spread sheet containing just several columns:
    - Column A - Name of a person
    - Column B - Team of that person
    - Column C - Task 1 (with "1" if the tasks has been performed at least once or blank if it has not)
    - Column D - Task 2 (with "1" if the tasks has been performed at least once or blank if it has not)
    - Column E - Task 3 (with "1" if the tasks has been performed at least once or blank if it has not)
    Of course some people are involved in more tasks then others and in some months some of them do not perform these identified tasks at all.

    What I am looking for is a simple button that would copy all the names into a separate spread sheet that would look like "Result" that I created manually. For every person performing more than one tasks, the macro would populate the name twice, each with different task. If for any reason one of the names has no "1" for any of the tasks, which means none of the three identified tasks have been performed by that person, that person would be skipped. Every month the tasks will be the same but the number of people and tasks they perform may change significantly.
    As an extra feature, there could be a radio button that would identify whether all departments or only one of them would be included in the generated tasks list.

    If there is anybody who could help me with writing that macro I would be VERY grateful !

    I am available any time for additional comments, further explanation and to answer any questions.

    I am looking forward to hearing form you soon.

    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Macro that generates new work sheet with people and tasks they perform

    Try
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-11-2013
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Macro that generates new work sheet with people and tasks they perform

    Jindon,
    thank you for your quick reply. I will give it a go and let you know.

    Again, thanks.

  4. #4
    Registered User
    Join Date
    08-11-2013
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Macro that generates new work sheet with people and tasks they perform

    Jindon,
    the code you wrote works great for 3 tasks. One more think, is there any quick way to increase the number of tasks?
    I am unable to amend the code to include 4 tasks. I will eventually need 11 tasks and that seems just impossible!

    I would be very grateful if you could share any ideas.
    Thank you very much.

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Macro that generates new work sheet with people and tasks they perform

    Post your workbook with before/after format.

  6. #6
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Macro that generates new work sheet with people and tasks they perform




  7. #7
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Macro that generates new work sheet with people and tasks they perform

    Thanks snb.

    afniz,

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  8. #8
    Registered User
    Join Date
    08-11-2013
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Macro that generates new work sheet with people and tasks they perform

    Thanks snb. I will try your code. It looks like something very similar to what Jjindon wrote. Btw, I must have incorrectly entered the original code from Jjindon as now I can manually add any "Tasks" as I want and the macro is automaticaly populating the "result" spread sheet. Such a short but powerful code. Amazing! Thank you Jindon.


    Administrator,
    I absolutely agree and will comply. It was my first post and to be fair the term "cross-posting" is completely new to me. Nevertheless, I will take it into consideration in the future. Thank you.

+ 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. Display a list of people who don't meet certain criteria in a new work sheet.
    By joshnathan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-03-2012, 06:52 AM
  2. Check a range of cells and perform tasks
    By somebody8 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-10-2011, 09:09 PM
  3. sending outlook tasks to multiple people
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-15-2006, 04:40 PM
  4. [SOLVED] Automation of Excel to perform simple tasks on many workbooks.
    By admin4office in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-14-2005, 09:06 PM
  5. Can I perform tasks on a closed Workbook
    By Jeff in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-27-2005, 03:06 PM

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