Avatar of Andreas Hermle
Andreas Hermle
Flag for Germany

asked on 

Split worksheets based on fill color using VBA

Dear Experts:

I would like to split a worksheet, named 'MasterWorksheet' (lots of rows and 8 columns) into several worksheets based on row colors:

Whenever the row color in Column A changes to RGB 217, 217, 217 all the rows till the next occurrence of such a grey-filled row have to be copied into a new worksheet along with the three first header rows of the 'MasterSheet' . The names of the newly created worksheets is to be derived from the cell contents of the respective grey cell.

I have attached a sample file for your convenience.

Help is much appreciated. Thank you very much in advance.

Regards, Andreas

Split_Worksheet_Based_on_Color.xlsx
VBAMicrosoft ExcelMicrosoft Office

Avatar of undefined
Last Comment
Roy Cox

8/22/2022 - Mon