![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Posts: 1,288
|
Can anybody help me with the following :
I have to delete the interior color of sheet1 with a macro. I don't know how many rows this sheet has. (it is variable). Many thanks for help. |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: San Francisco, California USA
Posts: 10,382
|
Based on your question, it appears you want no cell on the sheet to have color, regardless of whatever range you may be working in.
In general, removing all the interior color from all the cells of the sheet would look something like this: Sub NoColor() Cells.Interior.ColorIndex = xlNone End Sub Maybe there's more to the question though, so if you mentioned the variable range because other cells outside of that range have interior color that must be left alone, please repost. |
|
|
|
|
|
#3 | |
|
Board Regular
Join Date: Mar 2002
Posts: 1,288
|
Quote:
|
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|