VBA-IDE-Code-Export icon indicating copy to clipboard operation
VBA-IDE-Code-Export copied to clipboard

Set VBAProject Name on Make Config File

Open mattpalermo opened this issue 8 years ago • 2 comments

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.

mattpalermo avatar Mar 06 '17 05:03 mattpalermo

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:

spences10 avatar Mar 06 '17 10:03 spences10

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!

mattpalermo avatar Mar 06 '17 11:03 mattpalermo