PDA

View Full Version : Need to save/dump macro values to a file


tim.calderwood
04-19-2010, 05:30 PM
I am sorry if this has been answered before, but I am looking for a way to save all of the macros and values to a text file. Anybody know how to do this?

kinook
04-19-2010, 05:39 PM
Which macros? In what format? Macros.Save will save in XML format.
http://www.kinook.com/VisBuildPro/Manual/macrossavemethod.htm

tim.calderwood
04-19-2010, 05:54 PM
We are trying to save all macros at the start of a build for later debugging if need be. Format really does not mater, XML will work just fine. I am trying to figure out how to use the Macro.Save currently.

kinook
04-19-2010, 06:10 PM
To save all macros (highest precedence for different types with same name):vbld_AllMacros.Save "%TEMP%\All.macros"http://www.kinook.com/VisBuildPro/Manual/sysscriptmisc.htm

To save a particular type of macros (i.e., Temporary):Application.Macros(vbldMacroTemporary). Save "%TEMP%\Temp.macros"Put the code in a Run Script step.

http://www.kinook.com/VisBuildPro/Manual/runscript.htm