spences10 / VBA-IDE-Code-Export

Export & Import VBA code for use with Git (or any VCS)
MIT License
119 stars 34 forks source link

Set VBAProject Name on Make Config File #71

Open mattpalermo opened 7 years ago

mattpalermo commented 7 years ago

When Make Config File is run, the VBAProject Name property of the config file should be set to the current project name in the workbook.

spences10 commented 7 years ago

So I'm looking at modImportExport.bas and Public Sub MakeConfigFile() correct?

And from there I'm not sure where prjActProj should go...

MakeConfigFile() is a really nice looking peice of code @mattpalermo :+1:

mattpalermo commented 7 years ago

The Config object represents the configuration. This object (and the clsConfiguration class) has a VBAProjectName property that will get and set the configuration VBAProject Name for you. It's just a matter of putting Config.VBAProjectName = .... somewhere in the MakeConfigFile procedure.

Thankyou :) I am quite happy with how the separation of concerns between modImportExport and clsConfiguration turned out!