Closed Beakerboy closed 1 year ago
@Beakerboy Might be worth dumping all useful documentation links into the issue.
I'm guessing the idea is to generate a pcodeless file with compressed src code only?
I have an issue called “sources” with links to helpful information towards understanding OLE files, and VBAProject files. Yes, the idea is to point this script to a directory of VBA files, and it will package them up into a vbaProject.bin file. I already have a python script that will take a bin file and a directory of the unzippped contents of and xlam file, combine them and zip them up. I plan on using exel-press to perform the source code compression. I have not tested that project yet.
Yes, the idea is to point this script to a directory of VBA files
Would it be worth splitting the project up into:
class VBAProject
def __init__(sProjectName)
...
def addModule(sBasTextOrStream, visible=true)
...
def addClassModule(sBasTextOrStream, visible=true)
...
def addUserformModule(sBasTextOrStream, visible=true)
...
def addReference(...)
...
def saveAs(sFile)
...
...
Then anyone can integrate the use of the class into their own desired environment.
This may well be how you are planning to set things out already 😛
P.S. I don't know python either. I'm learning the language by making this project. Feel free to add more noob-tier skills to it.
Compress source code From a blank vbaProject.bin: