Hello,
After 2 days of experience with Excel sheet managing from C#, I still didn't understand the major feature - how to manage cell ranges.
For example in my actual code I want to set the font style in the cell "A1" to bold:
myExcelWorksheet.Range["A1"].Style.Font.Bold = true;
The result is completely different from what I want - all the cells "filled" after this instruction are in bold, but "A1" remains in regular font.
Where I've been mistaken ?
Thanks in advance.
Pavel.
Setting of the Font style in Excel worksheet - total ambiguity !!!
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Pavel106 reputationPosted Sep 28, 2012, 1:47 AM EDT
myExcelWorksheet.Range["A1"].Font.Bold = true;
Regards.
RanjithKumar chiguruvada133 reputationPosted Sep 28, 2012, 1:55 AM EDT
try these one
myExcelWorksheet.Range["A1"].Font.Bold = true;