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.

Thu Mar 22, 2012 1:02 pm

Hello,

I need to create an application in VB.NET that:
1) open an excel files: source
2) open another excel file: target
3) import the defined name from source to target
4) save the file as a third excel file: output

Scenario A:
1) The user open source.xlsx (2007)
2) Open target.xls (2000)
3) Import defined name
4) save the result as output.xlsx (2007)

Is Spire.XLS support macro? We do not want to manipulate them. Just keep them if there are in the target file.

Scenario B:
1) The user open source.xls (2000)
2) Open target.xls (2000 that contain a macro)
3) Import defined name
4) save the result as output.xls (2000 that keep the macro)

Thank you,
Have a great day!
Last edited by sderrico on Wed Jun 08, 2022 1:48 pm, edited 1 time in total.

sderrico
 
Posts: 1
Joined: Thu Mar 22, 2012 12:53 pm

Fri Mar 23, 2012 11:53 am

Hi Sebastien,

Thanks for evaluating Spire.XLS.

Spire.XLS can read and keep the macro, but can't support to create a macro. So Spire.XLS can meet all your requirements perfectly. I attached a zip file including two demos about the Scenario A and Scenario B. Please have a look.

If you still have any questions,please feel free to contact us.

Have a nice day.
BR
Suvi
e-iceblue support
Attachments
Samples.zip
two demos about scenario A and secnario B
(45.43 KiB) Downloaded 471 times
User avatar

Suvi.Wu
 
Posts: 154
Joined: Thu Oct 20, 2011 2:53 am

Return to Spire.XLS