المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : C# Excel: Creating a named range?



C# Programming
12-18-2009, 08:20 PM
How can I create a named range in a C# excel report for cells that aren't lined up next to eachother?

I've seen examples on how to create a named range for consecutive cells (i.e. A1:M1), however the cells I need to name are scattered throughout the report (i.e. A1, H3, J9, S17, etc).

In excel, I could just do this by holding CTRL + click, but how can I do this in c#?

Thanks.