2007 Macros converting from 2003

A

Annette

I created a simple macro in 2003 to convert text in the slide to a certain
size font. I read that the original file (which I named standard.ppt) needs
to be open to run. This worked for 2003 but I have been upgraded to 2007
and now I can not get the macro to run. I have already attempt to change
the settings to 'enable' all macros, etc. and nothing seems to be working.

How can I get this to run in my 2007?

Here's teh original code:
 
A

Annette

Sorry ... here's the code created using 2003
Sub ChangeFont( )
ActiveWindow.Selection.ShapeRange.TextFrame.TextRange.Characters(Start:=394,
Length:=1).Select
ActiveWindow.Selection.TextRange.Text = ""
ActiveWindow.Selection.ShapeRange.TextFrame.TextRange.Characters(Start:=1678,
Length:=1).Select
ActiveWindow.Selection.TextRange.Text = ""
ActiveWindow.Selection.ShapeRange.TextFrame.TextRange.Select
ActiveWindow.Selection.ShapeRange.TextFrame.TextRange.Characters(Start:=1,
Length:=3508).Select
With ActiveWindow.Selection.TextRange.Font
.Name = "Arial"
.Size = 12

End With
End Sub
 
M

Michael Koerner

I from someone who has a hard time spelling macro, believe that Steve's
first line should read: Sub ChangeFont()
 
A

Annette

I inserted the code, then looked at the settings ... they are set for
"disable all macros with notification" ... even thried enable all macors, it
keeps erroring:

"The macro cannot be found or has been disabled because of your security
settings"

The macro I loaded directly into the powerpoint so it wouldn't have to find
it and still ...

Any thoughts?
 
M

Michael Koerner

Thanks, I'll remember that the next time I have anything to do with macros
;o-))
 
D

David Marcovitz

OK. I have a dumb question. Did you close the PPT and re-open after
setting the settings? Macros are either enabled or disabled when you
start the presentation so if you change the settings, they won't take
effect until you open the presentation again.
--David

I inserted the code, then looked at the settings ... they are set for
"disable all macros with notification" ... even thried enable all macors, it
keeps erroring:

"The macro cannot be found or has been disabled because of your security
settings"

The macro I loaded directly into the powerpoint so it wouldn't have to find
it and still ...

Any thoughts?


--
David M. Marcovitz
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/
Microsoft PowerPoint MVP
Associate Professor, Loyola University Maryland
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top