Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

Sat Nov 05, 2016 12:32 am

I have a template to create new excel worksheets. It has several cells defined with a named range. I thought I would be able to use something like to put a value in the named cell, but I get an error "StartIndex cannot be less than zero"

worksheet.range["rangename"].Value = "abcd";

can someone point me in the right direction?

thanks

dchillman
 
Posts: 4
Joined: Thu Nov 03, 2016 2:56 pm

Mon Nov 07, 2016 2:58 am

Dear dchillman,

Sorry for late reply as weekend.
Please make sure the rangename is same as the name defined in the template file. If there still is issue, please provide us the template file for investigation.

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Thu Nov 10, 2016 7:13 am

Dear dchillman,

Has the issue been resolved ? If not, please provide us the template file and code your were using for investigation.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.XLS