+ Reply to Thread
Results 1 to 4 of 4

Macro to set RowHeight after ColorIndex.

  1. #1
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Macro to set RowHeight after ColorIndex.

    Hi I would like to have a macro which can set the row height after colorindex. So if there is cells with color index 4. it set the rowheight to example 34 in those rows with that color ,
    And if the colorindex is 16 it set the rowheight to example 25 in those cells with that color.

    I have attached a little test sheet to work with.

    Hope some can help.

    Sincerely

    Abjac
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,700

    Re: Macro to set RowHeight after ColorIndex.

    You could try this.

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Macro to set RowHeight after ColorIndex.

    Please Login or Register  to view this content.
    this code does sont work if no data in column A
    If solved remember to mark Thread as solved

  4. #4
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Re: Macro to set RowHeight after ColorIndex.

    Thanks Jolivanes and Patel 45. Both codes work just perfect. It can be an advance to have both options. To change if there is color, but also only change if there data inside. So great with both codes.

    Thanks to both of you

    Have a nice day

    Sincerely
    Abjac

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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