× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hello Helena,

I have some questions regarding Creating VB to an Excel with POI from RPG.
1. Can I use POI to write (export) VBScripts macros to an Excel
spreadsheet (.xls) file?

No... but you can create your XLS file in Excel with the VBScripts, and use it as a "template".

Have your RPG program make a copy of the original XLS, and use POI to insert cells with data in them. Although you can't use POI to add the VBScripts, any scripts you added with Excel will be retained.


2. If yes, then what version of POI (HSSF) do I need? Could you give
me an example?

It should work with any version of POI. And since you'll be creating the VBA in Excel, I assume you no longer need an example. (If you do, I'm not the right person to ask, anyway... I never learned VBA scripts. I let other people do that part, if it's needed at all.)

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.