Click here to Skip to main content
15,905,316 members
Please Sign up or sign in to vote.
1.60/5 (2 votes)
See more:
my get_range method is not working then how can change the color of "TEXT" in present in worksheet cell .

additional information copied from comment below
C#
_worksheet.Cells[1, 1] = "Risk Name";
i want to change the color of "risk name" ie.blue font.

additional information copied from comment below 02
i also try to color a ROW of woksheet but when i m trying to do
C#
// _worksheet.get_Range(_worksheet.Cells[1, 1], _worksheet.Cells[1, 8]).Font.Bold = true;
then i am geting the error Object Doest Not contain definition for get_Range
Posted
Updated 7-Jan-14 0:49am
v3
Comments
Maciej Los 7-Jan-14 6:19am    
Post your code...
Nelek 7-Jan-14 6:29am    
siddharth629 7-Jan-14 6:37am    
_worksheet.Cells[1, 1] = "Risk Name"; i want to change the color of "risk name" ie.blue font.

siddharth629 7-Jan-14 6:40am    
i also try to color a ROW of woksheet but when i m trying to do
// _worksheet.get_Range(_worksheet.Cells[1, 1], _worksheet.Cells[1, 8]).Font.Bold = true; then i am geting the error Object Doest Not contain definition for get_Range

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900