Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-12-2012, 06:00 PM
Venky62 Venky62 is offline Should be a simple macro, need a start Windows 7 64bit Should be a simple macro, need a start Office 2010 32bit
Advanced Beginner
 
Join Date: Jul 2012
Posts: 58
Venky62 is on a distinguished road
Default

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
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Should be a simple macro, need a start Another simple macro problem 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

Other Forums: Access Forums

All times are GMT -7. The time now is 08:08 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft