I have a few NPR reports that I open using the shell function call from a macro. This does not allow for any access to the excel object itself, so it's limited. Does anyone have any suggestions on building a vbscript from a macro to create the excel object, writing data from the report to that object, writing to pc and executing?
|
2
|
|
|
|
|
2
|
Another possible solution to this problem is to use XML. When you save a spreadsheet as XML you can then open it in another editor to read the output and then have NPR put something similar out. This XML file will output a very simple spreadsheet. you could then execute a vbs to convert this to XLS or file > open in excel will open this directly with formula's.
|
|||||||||
|
|
1
|
Ok, this is what I've come up with so far...use a macro to build a vb script, enabling access to the excel object, and building the excel sheet. Use the shell function to run the script and launch the workbook. Seems a little time consuming...and this doesn't include the report detail. Maybe someone could find some use for it...if I have to use a script, I'd rather use the script to run the report, instead of the report writing, then running the script. IF{'/ONLY.ONCE 1^/ONLY.ONCE,@RUN}, |
||||||
|
|
0
|
Come check out Larry Carver's Text Import Utility: http://www.comstock-software.com/Blog/bid/38655/MEDITECH-Download-Microsoft-Excel-Import-Utility. |
||
|
|


