passing variables

K

K J Boland

How do I pass variables from a macro in one presentation to a macro in a
second presentation ? The PUBLIC declaration does not appear to work.
 
K

K J Boland

Shyam,

thanks for that.. unfortunately I had seen that; this requires knowíng the
name of the first presentation in advance, and does not allow that the 1st
presentation may be any one of a number of presentations creating the link
to the second.

I know I can pass the variable by writing it to a text file and then have
the second pick it up. It seems ridiculuous that there is not some way of
writing to a "global" memory variable.
 
K

K J Boland

thanks Steve,

clearer now....


Steve Rindsberg said:
Yes and no. Compared to a normal program, an add-in or macro running
inside
PowerPoint is in a weird place.

Consider the chaos if you were running several addins in PowerPoint and
each of
them declared a public variable of the same name.

How do you spell "Real ugly, Real fast"? ;-)

A bit of isolation is a good thing, IMO.

Writing to a file's one way of doing the job; you can also write to the
registry ( see SaveSetting, GetSetting )


-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
 

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

Top