+ Reply to Thread
Results 1 to 13 of 13

Copy text based on highlights

  1. #1
    Registered User
    Join Date
    09-21-2016
    Location
    New York
    MS-Off Ver
    2010
    Posts
    9

    Copy text based on highlights

    Hi !! I was hoping someone could help me...I am a VBA newbie so please forgive me if I asking a super simple question.

    I am trying to have my text automatically copy from one column to another based on color of the cell.

    The text is in Column I and I would like it to automatically copy to Column T once I manually highlight Column I yellow.

    If Column I is NOT highlighted yellow it should NOT copy.

    I am using Excel 2010

    Thank you.

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Copy text based on highlights

    Hello lparri,

    Welcome to the Forum.

    The attached sample Workbook offers you various options, without me having to elaborate on Coding and explanations of how it should be done.


    Regards.
    Attached Files Attached Files
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Copy text based on highlights

    Hi lparri,

    I missed your Column i as primary source, so Please just Replace the Code for CopyColrs as shown below;

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    09-21-2016
    Location
    New York
    MS-Off Ver
    2010
    Posts
    9

    Re: Copy text based on highlights

    Thank you very much.

    So should I open the Module on your spreadsheet and copy the code into a Module in my spreadsheet?

  5. #5
    Registered User
    Join Date
    09-21-2016
    Location
    New York
    MS-Off Ver
    2010
    Posts
    9

    Re: Copy text based on highlights

    Sorry I sent that before I saw your second reply.

    Thank you very much for your help.

  6. #6
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Copy text based on highlights

    You are welcome, Glad I could help!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Thanks.

    It is customary to give feedback to those that have helped you by clicking on the asterisk (Add Reputation) at the bottom of their post.

    Regards.

  7. #7
    Registered User
    Join Date
    09-21-2016
    Location
    New York
    MS-Off Ver
    2010
    Posts
    9

    Re: Copy text based on highlights

    I wasn't able to get it to work in my spreadsheet but I thank you for your time and help.

    Lisa

  8. #8
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Copy text based on highlights

    Hi lparri,

    I find that very strange!


    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  9. #9
    Registered User
    Join Date
    09-21-2016
    Location
    New York
    MS-Off Ver
    2010
    Posts
    9

    Re: Copy text based on highlights

    I hope this helps you.
    Attached Files Attached Files

  10. #10
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Copy text based on highlights

    Hi lparri,

    Your Workbook "Before" and "After" examples are very different to you original request.

    For instance, your Row/s or others from Row#28 are already colored in yellow from Column A to Column U, that renders the Code null and void.

  11. #11
    Registered User
    Join Date
    09-21-2016
    Location
    New York
    MS-Off Ver
    2010
    Posts
    9

    Re: Copy text based on highlights

    I'm sorry so in order for that code to work the rest of the sheet needs to be blank or NOT highlighted?? Is that correct?

  12. #12
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Copy text based on highlights

    Only highlight the relevant cells in Column i in Yellow, then it should work.

    It is already 2:00 am on my side of the Globe, and I will get back to you A.S.A.P. For now I have to catch up on some sleep.

    'Till later

  13. #13
    Registered User
    Join Date
    09-21-2016
    Location
    New York
    MS-Off Ver
    2010
    Posts
    9

    Re: Copy text based on highlights

    Sorry to torture you !!! Have a good night !!

    Thanks again.

+ 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. Copy lines of text cells, to another area, based on color of text.
    By richard11153 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-10-2016, 03:53 PM
  2. [SOLVED] Yellow highlights text summary
    By makinmomb in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-22-2015, 02:32 AM
  3. How to highlight any text or number in workbook and then how to clear highlights
    By seamaiden in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-18-2015, 04:21 AM
  4. Highlights several cell based on single cell value (on the same raw) , vba
    By dainova in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-27-2013, 04:30 PM
  5. [SOLVED] Creating a Search box that highlights found text
    By prheaton in forum Excel General
    Replies: 4
    Last Post: 06-29-2012, 03:51 AM
  6. Highlights Numbers (which are in text)
    By moody in forum Excel General
    Replies: 3
    Last Post: 02-20-2012, 06:40 AM
  7. VBA Macro To Copy Entire Row To Another based on text
    By neild in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-21-2010, 11:06 PM

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