View Single Post
  #1  
Old 05-20-2004, 04:16 PM
pcts pcts is online now
Registered User
 
Join Date: 05-20-2004
Posts: 1
Unhappy Macro no eval properly in script

Suppose I have the following macros and their respective values:

MACRO1 = "58" (temporary macro)
MACRO2 = "Hello There %MACRO1%" (project macro)

When I hover the mouse over MACRO2 on the Macros tab, I correctly see a tooltip with the value "Hello There 58".

However, if I I try to access MACRO2 in a script step, I get the value "Hello There %MACRO1%", even though MACRO1 does have a value.

For example:
Set macrosProject = Application.Macros(vbldMacroProject)
Set macro2 = macrosProject.Item("MACRO2")
builder.LogMessage "Value is " & macro2.value

And I get
Value is Hello There %MACRO1%

Any idea what's going on?
Reply With Quote