+ Reply to Thread
Results 1 to 3 of 3

VBA to copy highlighted line and paste below the highlighted line-essentially duplicate it

  1. #1
    Registered User
    Join Date
    09-19-2014
    Location
    Philadelphia,PA
    MS-Off Ver
    2010
    Posts
    54

    VBA to copy highlighted line and paste below the highlighted line-essentially duplicate it

    Hi All!

    I have a list of accounts I have to send a customer so they can indicate whether each account is Y exempt, N not exempt or P partially exempt. When the account is partially exempt, I need to have some sort of prompt in place that forces the customer to fill in the specific records (within the account) that are exempt.

    Once a Y, N or P is indicated on the master sheet, it automatically populates its own sheet in the same workbook. If a P is indicated next to one of the accounts, I need the customer to be able to add the specific records somewhere and have it populate in the "P sheet".

    My idea was, that I would have a conditional formatting in place to highlight all partial accounts (P) in the master sheet, and then copy the row and insert its copy below it. There would be a record column next to the row also where the customer could fill this in.

    If anybody has any suggestions, or could help me copy from the highlighted row, please please please help!!

    Very much appreciated!

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: VBA to copy highlighted line and paste below the highlighted line-essentially duplicat

    Hello KT99,

    A picture is worth a thousand words. It would help to see a before and after example of your formatting.

    Will you be using just Office 14 (2010) or other versions as well?
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: VBA to copy highlighted line and paste below the highlighted line-essentially duplicat

    KT Please post a spreadsheet.

+ 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. [SOLVED] VBA or Macro to copy highlighted cells and paste into a new sheet
    By retroboy17 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-29-2014, 12:02 PM
  2. Copy Highlighted Cell And Paste
    By samdegg in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-28-2013, 06:23 PM
  3. Copy and Paste based on Red Highlighted Cells
    By rlsublime in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-15-2013, 12:59 PM
  4. Macro Help! Copy/Paste Highlighted Row
    By TShelt in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-16-2011, 12:30 PM
  5. Userform: delete all content through double click but not the highlighted line
    By wali in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-10-2010, 05:09 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