Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-26-2013, 03:02 AM
WimVisagie WimVisagie is offline Powerpoint find and replace (VBA?) Windows XP Powerpoint find and replace (VBA?) Office XP
Novice
Powerpoint find and replace (VBA?)
 
Join Date: Feb 2013
Posts: 2
WimVisagie is on a distinguished road
Default Powerpoint find and replace (VBA?)

Hi,



I'm used to Word's "record macro" function so could really use some help with Powerpoint (2007)! Basically I need to find and replace/delete all instances of return+tab character in a slideshow
(500+ slides).

Someone has done some pretty silly formatting with some bullet points and I have to fix them.

I've tried looking around on google for some answers but didn't really get anywhere - can anyone help?

Thanks!

Wim

This is cross posted http://www.vbaexpress.com/forum/showthread.php?t=45431
Wim - please mention cross posts as there may be folk working on your problem solved elsewhere!


Last edited by JohnWilson; 02-26-2013 at 05:35 AM. Reason: Cross Post
Reply With Quote
  #2  
Old 02-26-2013, 09:20 AM
JohnWilson JohnWilson is offline Powerpoint find and replace (VBA?) Windows 7 64bit Powerpoint find and replace (VBA?) Office 2010 32bit
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,913
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

Whether you can do this will depend on EXACTLY what they did!

(Foolproof?? Never underestimate the ingenuity of fools)

This might work but test on a copy!

Sub replaceMe()
Dim osld As Slide
Dim oshp As Shape
For Each osld In ActivePresentation.Slides
For Each oshp In osld.Shapes
If oshp.HasTextFrame Then
'look for newline followed by Tab and switch to SPACE
With oshp.TextFrame.TextRange
.Text = Replace(.Text, vbCr & vbTab, " ")
End With
End If
Next oshp
Next osld
End Sub
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote
  #3  
Old 03-21-2013, 11:04 AM
WimVisagie WimVisagie is offline Powerpoint find and replace (VBA?) Windows XP Powerpoint find and replace (VBA?) Office XP
Novice
Powerpoint find and replace (VBA?)
 
Join Date: Feb 2013
Posts: 2
WimVisagie is on a distinguished road
Default Thanks for your reply

It did seem to work on some instances but not others... Powerpoint not having a show/hide characters function really didn't help on this problem! In any case I ran out of time to sort it out so I handed it over to an intern to do by hand...

Thanks for answering though.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Powerpoint find and replace (VBA?) Bad view when using Find and Find & Replace - Word places found string on top line paulkaye Word 4 12-06-2011 11:05 PM
Powerpoint find and replace (VBA?) Is there a way to use "find/replace" to find italics words? slayda Word 3 09-14-2011 02:16 PM
Powerpoint find and replace (VBA?) Find and Replace kjxavier Word 1 08-12-2011 08:57 AM
Powerpoint find and replace (VBA?) Help with find and replace or query and replace shabbaranks Excel 4 03-19-2011 08:38 AM
find and replace anil3b2 Word 0 08-03-2010 11:30 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:13 AM.


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