PC Review


Reply
Thread Tools Rate Thread

2007 Macros converting from 2003

 
 
Annette
Guest
Posts: n/a
 
      23rd Apr 2010
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:



 
Reply With Quote
 
 
 
 
Annette
Guest
Posts: n/a
 
      25th Apr 2010
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

"Steve Rindsberg" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> In article <(E-Mail Removed)>, Annette wrote:
>> 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:

>
> And there endeth the message. Try resending the code ...?
>
>
>
>
> ==============================
> PPT Frequently Asked Questions
> http://www.pptfaq.com/
>
> PPTools add-ins for PowerPoint
> http://www.pptools.com/
>
>



 
Reply With Quote
 
Michael Koerner
Guest
Posts: n/a
 
      25th Apr 2010
I from someone who has a hard time spelling macro, believe that Steve's
first line should read: Sub ChangeFont()





"Steve Rindsberg" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> Looks like Macro Recorder's been busy. ;-)
> You can tell by the ugliness of the code.
>
> Try this instead.
>
> Sub ChangeFont
> With ActiveWindow.Selection.ShapeRange.TextFrame.Text
> .Font.Name = "Arial"
> .Font.Size = 12
> End With
> End Sub
>
> Then do Office Button | PowerPoint Options
> Click Trust Center on the left, then Trust Center Settings on the right
> Click Macro Settings on the left
> Click "Disable all macros with notification"
> OK
>
> Now try running the code
>
>
> In article <(E-Mail Removed)>, Annette wrote:
>> 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
>>
>> "Steve Rindsberg" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>> > In article <(E-Mail Removed)>, Annette wrote:
>> >> 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:
>> >
>> > And there endeth the message. Try resending the code ...?
>> >
>> >
>> >
>> >
>> > ==============================
>> > PPT Frequently Asked Questions
>> > http://www.pptfaq.com/
>> >
>> > PPTools add-ins for PowerPoint
>> > http://www.pptools.com/
>> >
>> >

>
>
> ==============================
> PPT Frequently Asked Questions
> http://www.pptfaq.com/
>
> PPTools add-ins for PowerPoint
> http://www.pptools.com/
>
>

 
Reply With Quote
 
Annette
Guest
Posts: n/a
 
      25th Apr 2010
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?


"Steve Rindsberg" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> Looks like Macro Recorder's been busy. ;-)
> You can tell by the ugliness of the code.
>
> Try this instead.
>
> Sub ChangeFont
> With ActiveWindow.Selection.ShapeRange.TextFrame.Text
> .Font.Name = "Arial"
> .Font.Size = 12
> End With
> End Sub
>
> Then do Office Button | PowerPoint Options
> Click Trust Center on the left, then Trust Center Settings on the right
> Click Macro Settings on the left
> Click "Disable all macros with notification"
> OK
>
> Now try running the code
>
>
> In article <(E-Mail Removed)>, Annette wrote:
>> 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
>>
>> "Steve Rindsberg" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>> > In article <(E-Mail Removed)>, Annette wrote:
>> >> 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:
>> >
>> > And there endeth the message. Try resending the code ...?
>> >
>> >
>> >
>> >
>> > ==============================
>> > PPT Frequently Asked Questions
>> > http://www.pptfaq.com/
>> >
>> > PPTools add-ins for PowerPoint
>> > http://www.pptools.com/
>> >
>> >

>
>
> ==============================
> PPT Frequently Asked Questions
> http://www.pptfaq.com/
>
> PPTools add-ins for PowerPoint
> http://www.pptools.com/
>
>



 
Reply With Quote
 
Michael Koerner
Guest
Posts: n/a
 
      26th Apr 2010
Thanks, I'll remember that the next time I have anything to do with macros
;o-))




"Steve Rindsberg" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> In article <B59DE9AE-683A-4779-8114-(E-Mail Removed)>, Michael
> Koerner
> wrote:
>> I from someone who has a hard time spelling macro, believe that Steve's
>> first line should read: Sub ChangeFont()

>
> Sheesh, everybody's a canadian ...
>
> VBA will fill in the parens for us. I keep TELLING you this stuff is
> magic, man.
>
> But ... um ... yer right.
>
> ;-)
>
>
>
>
>

 
Reply With Quote
 
David Marcovitz
Guest
Posts: n/a
 
      26th Apr 2010
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

On 4/25/10 9:42 AM, Annette wrote:
> 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?
>
>
> "Steve Rindsberg"<(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>>
>> Looks like Macro Recorder's been busy. ;-)
>> You can tell by the ugliness of the code.
>>
>> Try this instead.
>>
>> Sub ChangeFont
>> With ActiveWindow.Selection.ShapeRange.TextFrame.Text
>> .Font.Name = "Arial"
>> .Font.Size = 12
>> End With
>> End Sub
>>
>> Then do Office Button | PowerPoint Options
>> Click Trust Center on the left, then Trust Center Settings on the right
>> Click Macro Settings on the left
>> Click "Disable all macros with notification"
>> OK
>>
>> Now try running the code
>>
>>
>> In article<(E-Mail Removed)>, Annette wrote:
>>> 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
>>>
>>> "Steve Rindsberg"<(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed)...
>>>> In article<(E-Mail Removed)>, Annette wrote:
>>>>> 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:
>>>>
>>>> And there endeth the message. Try resending the code ...?
>>>>
>>>>
>>>>
>>>>
>>>> ==============================
>>>> PPT Frequently Asked Questions
>>>> http://www.pptfaq.com/
>>>>
>>>> PPTools add-ins for PowerPoint
>>>> http://www.pptools.com/
>>>>
>>>>

>>
>>
>> ==============================
>> PPT Frequently Asked Questions
>> http://www.pptfaq.com/
>>
>> PPTools add-ins for PowerPoint
>> http://www.pptools.com/
>>
>>

>
>



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

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting 2007 - 2003 Mike McNicholas Microsoft Excel Misc 3 10th Jun 2009 12:38 AM
converting from 2003 to 2007 finster26 Microsoft Access 1 18th Apr 2009 06:40 AM
Converting 2007 to 97/2003 Shempdog Microsoft Powerpoint 13 27th Mar 2009 03:59 PM
Excel 2007, I write macros in 2003 is 2007 similar for VBA? Pros andcons please Simon Microsoft Excel Programming 3 5th Aug 2008 03:48 PM
Converting from 2003 to 2007 charlie Microsoft Excel Charting 0 14th Jul 2008 06:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:10 PM.