I can’t find anywhere on how to use an existing macro-enabled workbook with Aspose.Cells. Can I have example code on how to do so? I also have a few questions on this. First, will the VBA code carry over as well so that users who don’t have Excel on their computers can use the application as I designed it? Finally, I’m somewhat confused on how to save this so that I can get it to the users who don’t have Excel. We have about 45 computers that my application needs to get to. I don’t want to start from scratch on developing a new application. Will Aspose.Cells work for what I am looking for? Thanks in advance.
Hi,
Hi,
Hi,
Hi,
That was going to be my next question. I followed the instructions when I originally made the project. The library for Cells contained 3 files and there were 5 or 6 in the video that was I was following. The files that were in the library directory were:
Ok, just to make sure I’m following all of the correct steps. When I downloaded Aspose.Cells I extracted the file and that made 3 folders: JDK 1.4, JDK 1.5 and JDK 1.6. Within each of those folders is an extractable file. Do I need to pull all 3 folders files in? Because I was just doing JDK 1.6 the first time around. Again, I re-downloaded Aspose.Cells and I only found 3 files in the “lib” folder. Any insight would be helpful.
Hi,DeereOne:
That was going to be my next question. I followed the instructions when I originally made the project. The library for Cells contained 3 files and there were 5 or 6 in the video that was I was following. The files that were in the library directory were:aspose-cells-7.5.1.jarbcprov-jdk16-146.jardom4j-1.6.1.jarAre there library files that I am missing? Thanks.
Thanks for your posting and using Aspose.Cells for Java.
You just need only these 3 libraries. Earlier, there were more libraries. Just add the references of above 3 libraries in your class path and use them. It will work fine.
Hi,DeereOne:
Ok, just to make sure I'm following all of the correct steps. When I downloaded Aspose.Cells I extracted the file and that made 3 folders: JDK 1.4, JDK 1.5 and JDK 1.6. Within each of those folders is an extractable file. Do I need to pull all 3 folders files in? Because I was just doing JDK 1.6 the first time around. Again, I re-downloaded Aspose.Cells and I only found 3 files in the "lib" folder. Any insight would be helpful.
Thanks for your posting and using Aspose.Cells for Java.
Since, you are using JDK1.6, so please use the libraries found inside the JDK1.6 folder. You do not need to extract other folders i.e JDK1.5 and JDK1.4.
Hello,
Hi,
Thanks for your posting and using Aspose.Cells for Java.
Well, you are getting file not found exception. Please give the correct file path and your issue will be resolved.
For example, you can give the file path like this.
Java
String filePath = “F:/Shak-Data-RW/Downloads/AMS Parts Search.xlsm”;
Workbook workbook = new Workbook(filePath);
Hello. I appreciate all of the help you have been giving me. I changed to your suggestion in the code and the program did what it was supposed to. There is a problem though. My ultimate goal, if you read my first post is to use what you at Aspose have designed to take my original workbook (that has macros and VBA code in it) and have it usable on systems that do not have Excel and still be able to run the application.
Hi,
Thanks for your posting and using Aspose.Cells for Java.
Well, Aspose.Cells can only preserve macros. It cannot manipulate macros or run them. If you are getting any issue in preserving macros, please provide your source xlsm file. We will look into it and update you asap.
So, basically, the macros that are already established in the original Excel file cannot be run, unless the user’s computers have Excel correct?
Hi,
Thanks for using Aspose.Cells.
Aspose.Cells can only preserve macros. It means, if your file already has macros, they will not become corrupt and after using Aspose.Cells, macros will remain intact and MS-Excel will be able to run them.
Thank you for your quick response. I feel that after the discussions I’ve had with you, Aspose.Cells will not be able to achieve what I desire. You have a good product, I just don’t believe this will work. Again, thank you for all of your support.
Hi,
Thanks for your posting and considering Aspose.Cells.
We are afraid, Aspose.Cells cannot run or modify macros and it does not meet your needs. If you have any other question related to Aspose.Cells, please feel free to post on our forums, we will be glad to help you asap.