+ Reply to Thread
Results 1 to 7 of 7

Transpose according to color.interior.index

  1. #1
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Transpose according to color.interior.index

    Hello everybody
    I have a lot of data in range("A1:A"& LastRow)
    there are some cells which has a red color of interior index number 3 .
    According to that index number of the color I want to transpose the data beginning with this index number till before the next one .. The desired results are in Sheets("Result") to illustarte the desired results..
    Please don't depend on the string (Header) as it is just a sample to the original wb
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Transpose according to color.interior.index

    Try this code see if it works.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Transpose according to color.interior.index

    Wonderful Mr. JieJenn
    Really great and very good code
    Just a little point .. The last line of sorting data is not acceptable for me as the string Header is just a sample but real data will not be sorted correctly .. So the data will not be in order
    How can we move the rows from the last row to the first row?!

  4. #4
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Transpose according to color.interior.index

    What do you mean? There are other parameters you can specify for the Sort Statement. If you want avoid sorting the list, I guess the For loop just need to be reversed.

  5. #5
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Transpose according to color.interior.index

    I reversed the loop but it didn't work!!!

  6. #6
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Transpose according to color.interior.index

    Use this
    Please Login or Register  to view this content.

  7. #7
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Transpose according to color.interior.index

    Yes it's perfect
    Thanks a lot for this great help
    You are PERFECT

+ 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. Change interior.color index in FOR
    By isaackoh in forum Excel General
    Replies: 3
    Last Post: 04-16-2014, 10:08 AM
  2. Find a duplicate and then use the duplicates interior.color to change cell color.
    By bopsgtir in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-01-2012, 03:54 PM
  3. Cell background color (interior color) setting not working
    By Martin E. in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-21-2006, 02:10 PM
  4. cells interior/color index
    By tandavina in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-12-2006, 07:35 AM
  5. Range based on interior color index?
    By garle in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-25-2006, 10:30 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