SetTempVar


S

Steve Schapel

Alhotch,

In a macro, just enter the SetTempVar action, in the Name argument enter
whatever you want the name of the TempVar to me, and in the Expression
argument, just enter like this:
fOSUserName()
 
Ad

Advertisements

A

alhotch

Works as advertised, Steve. I had originally used a "sample" macro that
demonstrated this capability. I was using:

ComputerName - Macro Name
SetTempVar - Action
MyVar,fOSMachineName - Argument
[TempVars]![MyVar]<>0 - Condition
MsgBox - Action
="You entered " & [TempVars]![MyVar] & "." - Argument
RemoveTempVar - Action
MyVar - Argument

This three line macro was giving me a "Type Mismatch" error. Removing the
"<>0" part of the above [TempVars]![MyVar] Condition makes trhis macro work
correctly.

Thanks for your help. I was sure I had done it right but not being a VB
programmer, I was doubting the fOSMachineName function.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top