Programmatically apply color to Excel ranges
To apply a color to text within a range of cells, use a NamedRange control or a native Excel range object.
Applies to: The information in this topic applies to document-level projects and VSTO Add-in projects for Excel. For more information, see Features available by Office application and project type.
Use a NamedRange control
This example is for document-level customizations.
To apply color to a NamedRange control
Create a NamedRange control at cell A1.
Set the color of the text in the NamedRange control.
Use native Excel ranges
To apply color to a native Excel range object
Create a range at cell A1 and then set the color of the text.
Related content
Povratne informacije
https://aka.ms/ContentUserFeedback.
Stiže uskoro: Tokom 2024. godine postepeno ćemo ukidati probleme sa uslugom GitHub kao mehanizam povratnih informacija za sadržaj i zameniti ga novim sistemom povratnih informacija. Dodatne informacije potražite u članku:Prosledite i prikažite povratne informacije za