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  

Set default textbox font



 
 
Thread Tools Display Modes
  #1  
Old November 25th, 2009, 02:37 PM posted to microsoft.public.powerpoint
Dale Fye
external usenet poster
 
Posts: 2,651
Default Set default textbox font

I'm using Access 2007 and VBA to create a series of slides in a PPT brief.

Would like to set the default font and font.size of textbox shapes added
using the AddTextbox method to Arial, 16. I'm currently adding lines for
each textbox. If I cannot figure out a way to do this with just a couple of
lines of code, at the beginning of my routine, I'll writing a subroutine with
just two lines and pass a shape to the sub. However, I would prefer to do
this with just two lines of codeat the beginning of my code segment.

----
Dale

  #2  
Old November 25th, 2009, 03:04 PM posted to microsoft.public.powerpoint
John Wilson
external usenet poster
 
Posts: 6,023
Default Set default textbox font

If you have one textbox with the correct font you should be able to use
..SetShapesDefaultProperties
--
john ATSIGN PPTAlchemy.co.uk

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






"Dale Fye" wrote:

I'm using Access 2007 and VBA to create a series of slides in a PPT brief.

Would like to set the default font and font.size of textbox shapes added
using the AddTextbox method to Arial, 16. I'm currently adding lines for
each textbox. If I cannot figure out a way to do this with just a couple of
lines of code, at the beginning of my routine, I'll writing a subroutine with
just two lines and pass a shape to the sub. However, I would prefer to do
this with just two lines of codeat the beginning of my code segment.

----
Dale

  #3  
Old November 25th, 2009, 03:29 PM posted to microsoft.public.powerpoint
Dale Fye
external usenet poster
 
Posts: 2,651
Default Set default textbox font

Worked like a charm!

Cannot believe how much more complicated the PPT object model is than Access.

Thanks, John

----
Dale



"John Wilson" wrote:

If you have one textbox with the correct font you should be able to use
.SetShapesDefaultProperties
--
john ATSIGN PPTAlchemy.co.uk

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






"Dale Fye" wrote:

I'm using Access 2007 and VBA to create a series of slides in a PPT brief.

Would like to set the default font and font.size of textbox shapes added
using the AddTextbox method to Arial, 16. I'm currently adding lines for
each textbox. If I cannot figure out a way to do this with just a couple of
lines of code, at the beginning of my routine, I'll writing a subroutine with
just two lines and pass a shape to the sub. However, I would prefer to do
this with just two lines of codeat the beginning of my code segment.

----
Dale

 




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 10:40 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.