Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello everyone. I have a piece of code that colors the contents of a
cell if the contents are hard-coded. This code as currently written applies to the nentire sheet. I would like to apply this code to only a specific range of cells. This will be used by end users, so ideally I'd like then to push a button, which will then prpomt the user via a form of some sort to select the range of cells. Can you help? Thanks so much in advance!! Here's what I have now: Sub ColorCellsRange() On Error Resume Next Cells.SpecialCells(xlCellTypeConstants, 1).Font.ColorIndex = 5 End Sub -Steph |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
alter code to apply to range (links cells w/ row insertions) | Excel Discussion (Misc queries) | |||
Problem undstanding how to apply a code | Excel Discussion (Misc queries) | |||
code to prompt before activating changes | New Users to Excel | |||
Apply more than one filter in macro/vb code | Excel Programming | |||
Would like to apply the code to protect cell | Excel Programming |