TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Pavel
1.6k
170
51.2k
How to specify cell range for Excel sheet
Sep 27 2012 6:40 AM
Hello,
How to specify cell range in order to change cell properties without loop.
For columns it works:
myExcelWorksheet.Columns["A:G"].ColumnWidth = 3;
myExcelWorksheet.Columns["H:V"].ColumnWidth = 5;
But when I try to use the same technique for cells it doesn't work. The following command generates run-time error.
myExcelWorksheet.Cells["I2:I5"].Font.Color = Color.FromArgb(0xFF, 0x00, 0xFF);
Thanks in advance.
Pavel.
Reply
Answers (
1
)
How to eun Microsoft Access method/function with parameters from C# app
Number is replaced by #### when column width is insufficient