Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Powerpoint, userform displays then hides!

Status
Not open for further replies.

RodP

Programmer
Jan 9, 2001
109
GB
Hi Everyone,

I've been trying to hold variables in memory and have failed somewhat. However I had an idea to store values in a text box in a userform. the values stored describe dimensions and positioning of objects for me to paste to another object (eg automated sizing and positioning).

This method works really well however there is a problem. I keep all my macros in one file (called powerpoint macros.ppt) and have a customised menu / toolbar which runs them when required. When I don't have this file open manually in the background, the userform I created appears and then disappears immediately. Previously I've been told to set up an addin version of my macro file but I'm a little confused in whether I really need to do this and whether I'd have to change the button in my toolbar etc.

If any of you could point me to a good tutorial or provide some advice in how to resolve this issue (addin or no addin) I'd be really greatful. I've already looked thorugh Powerpoint Help and VBA but there doesn't seem to be much advice for someone who has macros already setup in a ppt file and wants to move them to a ppa file.

Many thanks in advnace

RodP
 
RodP,

I'd go with the addin option; once it (the addin) is ready you can use the AutoLoad Property to make sure it is always ready to run every time you start PowerPoint.

There should be no changes needed for your Toolbar, buttons, etc.


"Trust everyone ... but always cut the cards." -- L. Long
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top