A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Powerpoint, Publisher and Visio » Powerpoint
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Macro for Creating a Text Box on all slides



 
 
Thread Tools Display Modes
  #1  
Old February 8th, 2010, 08:23 PM posted to microsoft.public.powerpoint
fritz78
external usenet poster
 
Posts: 41
Default Macro for Creating a Text Box on all slides

Is there a way to create a macro to place a small text box on every slide.
This is for creating manual page numbers (will type in desired page number).
I know how to create small macro for existing slide but do not want to run
for each individual slide. Rather just let it place the text box either on
all slides or if possible selected slides.

Not a VBA expert. PPT 2003, Win Xp.

THX! for your support.
Fritz.
  #2  
Old February 8th, 2010, 09:48 PM posted to microsoft.public.powerpoint
John Wilson
external usenet poster
 
Posts: 6,023
Default Macro for Creating a Text Box on all slides

Something like this for selected slides

Sub addTxtBox()
Dim osld As Slide
For Each osld In ActiveWindow.Selection.SlideRange
osld.Shapes.AddTextbox msoTextOrientationHorizontal, Left:=500, _
Top:=500, Width:=75, Height:=25
Next osld
End Sub
--
john ATSIGN PPTAlchemy.co.uk

Free PPT Hints, Tips and Tutorials
http://www.pptalchemy.co.uk/powerpoi...tutorials.html






"fritz78" wrote:

Is there a way to create a macro to place a small text box on every slide.
This is for creating manual page numbers (will type in desired page number).
I know how to create small macro for existing slide but do not want to run
for each individual slide. Rather just let it place the text box either on
all slides or if possible selected slides.

Not a VBA expert. PPT 2003, Win Xp.

THX! for your support.
Fritz.

  #3  
Old February 8th, 2010, 10:16 PM posted to microsoft.public.powerpoint
fritz78
external usenet poster
 
Posts: 41
Default Macro for Creating a Text Box on all slides

Thank You John! Now is there a way to place the number 1 in the text box at
font size 10pt.

THX!
Fritz

"John Wilson" wrote:

Something like this for selected slides

Sub addTxtBox()
Dim osld As Slide
For Each osld In ActiveWindow.Selection.SlideRange
osld.Shapes.AddTextbox msoTextOrientationHorizontal, Left:=500, _
Top:=500, Width:=75, Height:=25
Next osld
End Sub
--
john ATSIGN PPTAlchemy.co.uk

Free PPT Hints, Tips and Tutorials
http://www.pptalchemy.co.uk/powerpoi...tutorials.html






"fritz78" wrote:

Is there a way to create a macro to place a small text box on every slide.
This is for creating manual page numbers (will type in desired page number).
I know how to create small macro for existing slide but do not want to run
for each individual slide. Rather just let it place the text box either on
all slides or if possible selected slides.

Not a VBA expert. PPT 2003, Win Xp.

THX! for your support.
Fritz.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:09 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.