![]() |
|
#1
|
|||
|
|||
![]()
I am assuming that you know how to insert code in the code window and use it. Create three text boxes on your slide by going to Insert>Text Box. Do not use the Text Box in the Active X Control tool box (this is located on the Developer Tab of the ribbon).Then enter this code in a new module or the code window for the slide:
Sub test() ActivePresentation.Slides(1).Shapes(3).TextFrame.T extRange.Text = _ CInt(ActivePresentation.Slides(1).Shapes(1).TextFr ame.TextRange.Text) _ + CInt(ActivePresentation.Slides(1).Shapes(2).TextFr ame.TextRange.Text) End Sub This assumes that you are running the code on Slide 1 of your slideshow. If not, change the slides(1) to whichever slide number you want the code to run on. If you don't know how to insert code in the VB Editor then look at this link http://www.gmayor.com/installing_macro.htm |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Ulodesk | Word VBA | 1 | 06-08-2012 06:24 PM |
Simple VBA macro error | Formulayeti | PowerPoint | 1 | 12-09-2011 10:02 PM |
Simple or what? | nebb | Publisher | 0 | 09-23-2010 07:00 AM |
automatic start of macro + help on writing helper function | vsempoux | Word | 3 | 10-09-2009 03:01 AM |
Simple macro undoable? | garon5 | Outlook | 0 | 04-20-2007 10:27 AM |