View Single Post
  #2  
Old 06-14-2005, 06:36 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,027
The value in %macro% will be expanded (evaluated for macro %% or script [] references) before being passed to vbld_EscapeString, and the value returned from vbld_EscapeString will in turn be evaluated for macros and script. You need to escape the string (double literal percent and bracket chars within it) when assigning it to the macro value. In a Run Script step, it would be

Application.Macros(vbldMacroTemporary).Add "macro", vbld_EscapeString(abc)

where abc is a variable containing the raw value to be assigned.
Reply With Quote