Hi,
I have a program written in C# that comunicates with a VBA macro in an
Excel xls file. The macro creates a worksheet, imports data from a
text file to that worksheet, organizes the data in the cells, makes
some formatting, and save the new xls file.
The problem is: most of the users have Excel installed, but some of them only have alternative softwares to work with spreadsheets.
Those softwares can view the xls files generated, but Excel is still needed to run the macro and generate the file.
I'm searching for the best way to do this:
- Create an OO version of the program
It seems to be very complicated, because the macro language is completely different.
- Convert the code to a compiled VB.NET or C# application.
I know those languages have libraries that allow us to create an Excel file and do some operations on it. And the code can be easily converted. I still have doubts whether the libraries do the entire job or do they need to use Excel installed on the machine?
- Run Excel from a server
Has anyone dealed with this problem before?
As VBA programmers, what do you think is the best option?
I have a program written in C# that comunicates with a VBA macro in an
Excel xls file. The macro creates a worksheet, imports data from a
text file to that worksheet, organizes the data in the cells, makes
some formatting, and save the new xls file.
The problem is: most of the users have Excel installed, but some of them only have alternative softwares to work with spreadsheets.
Those softwares can view the xls files generated, but Excel is still needed to run the macro and generate the file.
I'm searching for the best way to do this:
- Create an OO version of the program
It seems to be very complicated, because the macro language is completely different.
- Convert the code to a compiled VB.NET or C# application.
I know those languages have libraries that allow us to create an Excel file and do some operations on it. And the code can be easily converted. I still have doubts whether the libraries do the entire job or do they need to use Excel installed on the machine?
- Run Excel from a server
Has anyone dealed with this problem before?
As VBA programmers, what do you think is the best option?