+ Reply to Thread
Results 1 to 15 of 15

VBA to move only selected columns and Auto assign names to task

  1. #1
    Forum Contributor
    Join Date
    09-27-2017
    Location
    USA
    MS-Off Ver
    MS365 - 2302
    Posts
    163

    Post VBA to move only selected columns and Auto assign names to task

    HI All,

    Good evening,

    I have seen a lot of auto task allocators online few I tried tweaking the macro but I am not able to get what I am looking for exactly.

    In the attached File there are 6 sheets.

    Tasklist (This has the attendance and what client the agent works on)
    Raw Data (My raw dump file which calculates TAT based on time)
    ABC, Moon and Other (these three are clients for us)

    What I am looking for is

    Step 1: FROM raw data sheet I want the data to split based on Column "S" with client Names to its sheets but only the Columns Marked in Green to Move to those sheets.
    Once the data is moved to the individual sheets.

    Step 2: I want Names to be allocated based on if an agent is present "Yes" to those particular clients
    Step 3: Collate all client sheet ABC, Moon and other to Master sheet.

    Is this possible?
    Attached Files Attached Files
    Last edited by nr6281; 09-24-2019 at 03:33 AM.

  2. #2
    Forum Contributor
    Join Date
    09-27-2017
    Location
    USA
    MS-Off Ver
    MS365 - 2302
    Posts
    163

    Re: VBA to move only selected columns and Auto assign names to task

    Anybody? Or is the explanation not right?

  3. #3
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,565

    Re: VBA to move only selected columns and Auto assign names to task

    Please note that I am not suggesting that I can solve, rather that the following is hindering others from solving.
    The file attached to post #1 seems to be password protected which, I assume, is why it has no views.
    Please either upload another nonprotected version or publish the password.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  4. #4
    Forum Contributor
    Join Date
    09-27-2017
    Location
    USA
    MS-Off Ver
    MS365 - 2302
    Posts
    163

    Re: VBA to move only selected columns and Auto assign names to task

    password is 3091 sorry for the delayed response

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

    Re: VBA to move only selected columns and Auto assign names to task

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    09-27-2017
    Location
    USA
    MS-Off Ver
    MS365 - 2302
    Posts
    163

    Re: VBA to move only selected columns and Auto assign names to task

    @jindon,

    This works perfect however one small change in this is, the code above assigns names to task on the master sheet but would it be possible to assign task on the individual sheets where they are split to.
    Last edited by nr6281; 10-01-2019 at 06:10 AM.

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

    Re: VBA to move only selected columns and Auto assign names to task

    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    09-27-2017
    Location
    USA
    MS-Off Ver
    MS365 - 2302
    Posts
    163

    Re: VBA to move only selected columns and Auto assign names to task

    perfect thank you so much @ Jindon

  9. #9
    Forum Contributor
    Join Date
    09-27-2017
    Location
    USA
    MS-Off Ver
    MS365 - 2302
    Posts
    163

    Re: VBA to move only selected columns and Auto assign names to task

    Hi Jindon,

    I wanted to add one more column so I edited the code but for some reason I am not able to get the names assigned, Should I be tweaking something else too?

    Please Login or Register  to view this content.
    L is the column I added but I am not sure if i did it right, I am sorry I am being a trouble.

    Also could you explain or break down the code in case i have to tweak something I know where to go than disturbing you my bad

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

    Re: VBA to move only selected columns and Auto assign names to task

    change i to j
    Please Login or Register  to view this content.

  11. #11
    Forum Contributor
    Join Date
    09-27-2017
    Location
    USA
    MS-Off Ver
    MS365 - 2302
    Posts
    163

    Re: VBA to move only selected columns and Auto assign names to task

    Hi Jindon,

    Thank you, I was able to get it.

    However one small change I removed Columns U:V from the split data so now it is
    Please Login or Register  to view this content.
    So now how to have the names assigned right after this i:e (Column L) and not Column N as per the previous ones?

  12. #12
    Forum Contributor
    Join Date
    09-27-2017
    Location
    USA
    MS-Off Ver
    MS365 - 2302
    Posts
    163

    Re: VBA to move only selected columns and Auto assign names to task

    And is there a possibility that you can add comments within the macro to tell me what line does what.

    I am not quite able to figure out which line assigns the names and which line collates the data so forth and so on

    SO if for example if you can help me with something like this.

    Please Login or Register  to view this content.
    That would be helpful thank you in advance

  13. #13
    Forum Contributor
    Join Date
    09-27-2017
    Location
    USA
    MS-Off Ver
    MS365 - 2302
    Posts
    163

    Re: VBA to move only selected columns and Auto assign names to task

    @ Jindon,

    Any help on this to have the name assigned in Column L?

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

    Re: VBA to move only selected columns and Auto assign names to task

    1) add one more variable
    Please Login or Register  to view this content.
    2) insert one line in bold
    Please Login or Register  to view this content.
    3) change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.

  15. #15
    Forum Contributor
    Join Date
    09-27-2017
    Location
    USA
    MS-Off Ver
    MS365 - 2302
    Posts
    163

    Re: VBA to move only selected columns and Auto assign names to task

    Thank you Jindon

+ 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. Macro needed to auto assign task
    By nr6281 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-27-2018, 11:23 AM
  2. Excel to record tasks done and assign a task to someone else
    By rahul_ferns76 in forum Excel General
    Replies: 5
    Last Post: 11-04-2018, 04:10 AM
  3. [SOLVED] VBA code to assign names based on some variables
    By Perez199202 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-24-2018, 03:28 PM
  4. Auto assign position code on each row on my spreadsheet?
    By Wilt in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-04-2016, 07:04 AM
  5. Auto Update Data excel Task Schedule
    By izk630 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-21-2016, 12:45 PM
  6. Replies: 1
    Last Post: 05-29-2015, 10:40 AM
  7. [SOLVED] code to add a name to the names collection and assign a reference
    By keithb in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-05-2005, 02:05 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