Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Marie,
This fills in cells with the colorindex of -4142.... Sub NumberCells2() Dim myC As Range For Each myC In Selection If (Not myC.MergeCells) And _ (myC.Interior.ColorIndex = -4142) And _ (myC.Value < "a") Then myC.Value = Application.Max(myC.Offset(-1, 0).EntireRow, _ Cells(myC.Row, 1).Resize(1, myC.Column - 1)) + 1 End If Next myC End Sub -- HTH, Bernie MS Excel MVP "Marie" wrote in message ... I think the code fails if the color value is negative, i.e. -4142, because of syntax. How can I properly enter this value? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2007 texture fill of chart data series columns | Charts and Charting in Excel | |||
fill series of multiple rows and columns | Excel Discussion (Misc queries) | |||
Fill Series Dates: not letting me change the series from year to m | Excel Discussion (Misc queries) | |||
auto fill columns based on a selection | Excel Discussion (Misc queries) | |||
Charts switch from 'Series in Rows' to 'Series in Columns' | Charts and Charting in Excel |