+ Reply to Thread
Results 1 to 6 of 6

Move text right to next color formatted cell

  1. #1
    Forum Contributor
    Join Date
    02-07-2012
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    156

    Move text right to next color formatted cell

    Need some help......I hope this can be done!!

    I have a worksheet that has certain cell, to the right of data, that has been formatted with a Yellow (color #65535) background. I would like to move the data to the first cell to the right of it that has the Yellow background.

    Thanks in advance for your suggestions.

  2. #2
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Move text right to next color formatted cell

    Could you post an example worksheet with a brief before and after?

    I'm fairly certain its possible I just want to be sure about the details.
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

  3. #3
    Forum Contributor
    Join Date
    02-07-2012
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    156

    Re: Move text right to next color formatted cell

    For example, lets say cell A5 has data in it. To the right of it, maybe cell A10, is formatted with a Yellow background. I would like the code to recognize cell A10 and move the data from A5 into it.

    Thanks !!

  4. #4
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Move text right to next color formatted cell

    A10 is actually below it, not to the right of it. Did you mean J5? Will they always be separated by 10 columns? Do you want it to check every row in A for a yellow column to the right? There are a lot of details to go through. Thats why I thought a before and after example might be helpful.

  5. #5
    Forum Contributor
    Join Date
    02-07-2012
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    156

    Re: Move text right to next color formatted cell

    Sorry.......I meant J10. Not always separated by the same number of columns. I hope that isn't a problem )

  6. #6
    Forum Contributor
    Join Date
    02-07-2012
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    156

    Re: Move text right to next color formatted cell

    I just thought of something.......so simple but effective as long as there are no formatted cells between the cell containing the data and the cell to the right of it with the yellow background. Hey it works

    Please Login or Register  to view this content.

+ 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. Replies: 4
    Last Post: 07-03-2012, 06:33 PM
  2. Replies: 2
    Last Post: 09-22-2010, 07:54 PM
  3. Extracting Font Color from a Conditionally Formatted Cell
    By rsromano in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 03-27-2010, 04:21 PM
  4. Converting 'General' formatted cells to Text formatted cell using.
    By Zahid Khan in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-12-2005, 04:06 PM
  5. [SOLVED] Conditional Formatted Cell Color Index
    By MDR5300 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-27-2005, 06: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