View Single Post
  #2  
Old 05-20-2004, 04:50 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,052
By design, the macro object's Value property returns the raw (unexpanded) value of the macro. To retrieve the expanded value, use:

Application.ExpandMacros("%MACRO2%")
-or-
Application.ExpandMacros(macro.Value)

or if the macro value might also contain script expression(s), use ExpandMacrosAndScript instead of ExpandMacros.
Reply With Quote