Results 1 to 14 of 14

Duplicate Row and Rename If Column Contains Value

Threaded View

migos Duplicate Row and Rename If... 02-01-2018, 04:17 PM
xladept Re: Duplicate Row and Rename... 02-01-2018, 05:30 PM
migos Re: Duplicate Row and Rename... 02-02-2018, 12:08 PM
migos Re: Duplicate Row and Rename... 02-02-2018, 12:19 PM
xladept Re: Duplicate Row and Rename... 02-02-2018, 01:36 PM
migos Re: Duplicate Row and Rename... 02-27-2018, 10:49 AM
migos Re: Duplicate Row and Rename... 02-27-2018, 10:52 AM
xladept Re: Duplicate Row and Rename... 02-27-2018, 12:52 PM
migos Re: Duplicate Row and Rename... 02-27-2018, 02:49 PM
xladept Re: Duplicate Row and Rename... 02-28-2018, 04:37 PM
migos Re: Duplicate Row and Rename... 02-28-2018, 04:40 PM
xladept Re: Duplicate Row and Rename... 03-01-2018, 12:04 PM
migos Re: Duplicate Row and Rename... 03-01-2018, 12:22 PM
xladept Re: Duplicate Row and Rename... 03-01-2018, 12:39 PM
  1. #1
    Registered User
    Join Date
    01-29-2018
    Location
    Toronto
    MS-Off Ver
    MS Office 2013
    Posts
    17

    Duplicate Row and Rename If Column Contains Value

    Hi I need help for a fairly simple issue, but am very inexperienced with VBA. I'm currently assisting my team with tracking sales activities, however the log is updated manually and the sales activities are sometimes performed by more than one sales person. As you can see in the attached the Sales Person (Column B) will occasionally have a "/" to define the multiple persons involved. The entry would all be completed via Data Validation, however I would like to keep the solution dynamic as in the future different combinations would arise (i.e. sales activity by "Chris/Jeff"etc.). Essentially I am looking for a simple VBA macro that would first duplicate the whole sheet, and then find which rows in column B contained "/" and duplicate the row directly beneath for as many "/" as there are. For example if the Sales Person column had "Jeff/Brian/Chris", the macro would copy and paste the whole row twice below that line, and rename column B in order of the names presented (i.e. the copied line would change column B from "Jeff/Brian/Chris" to "Jeff", the first copied row below column B "Brian", and second copied line column B would be "Chris").

    Thank you in advance!
    Attached Images Attached Images
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Duplicate sheet multiple times and rename each wcomma separated string in cell
    By michellepace in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-21-2017, 02:13 AM
  2. Delete Duplicate rows with duplicate in 1 column based on value from another column
    By CraigR&M in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-30-2016, 02:06 PM
  3. Replies: 8
    Last Post: 06-25-2015, 08:59 AM
  4. Macro to duplicate current sheet and incrementally rename by month
    By jerrydiaz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-05-2013, 12:31 PM
  5. Replies: 1
    Last Post: 06-01-2013, 01:27 AM
  6. Replies: 2
    Last Post: 03-09-2013, 10:14 PM
  7. Duplicate and rename worksheet
    By Khaos176 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-12-2008, 08:48 AM

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