Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 06-30-2012, 12:17 PM
aditya_bokade aditya_bokade is offline How to insert paragraph character after every 500 characters? Windows XP How to insert paragraph character after every 500 characters? Office 2007
Novice
How to insert paragraph character after every 500 characters?
 
Join Date: Jun 2012
Posts: 9
aditya_bokade is on a distinguished road
Default

Dear macropod,
By getting inspired by you, I tried to create a macro in Ms Power point.
I wanted a macro which after execution can apply underline, make it bold and color red the selected text.
So I went to MS Word and recorded the macro. It worked as expected.
When I copied the same procedure to MS Power point, it says
"Object required."
This is my macro:


Sub aaaaaaa()

Selection.Font.Color = wdColorRed ----> here it stops execution.

If Selection.Font.Underline = wdUnderlineNone Then
Selection.Font.Underline = wdUnderlineSingle
Else
Selection.Font.Underline = wdUnderlineNone
End If
End Sub

Yes, I have selected some text in MS Power point before running the macro.
This same idea works in MS Word but not in MS power point. If it works, it will be very helpful to me.
Please help.
Thank you.
Reply With Quote
 

Tags
paragraph character



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to insert paragraph character after every 500 characters? Restricting paragraph styles without restricting character styles Red Pill Word 5 05-25-2012 01:06 PM
character set bobster Word 0 06-07-2011 10:17 AM
How to insert paragraph character after every 500 characters? tab key arrows first character carolinason Word 6 10-30-2010 06:45 PM
Junk characters (box-like characters) in Word file Sashikala Word 1 04-20-2010 02:03 PM
Character style stripped while applying paragraph style sams_gates Word 0 08-29-2009 02:03 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:06 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