Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 02-21-2017, 09:15 AM
onlywonderboy onlywonderboy is offline Replacing formatted bullet points as a plain text character? Windows 7 64bit Replacing formatted bullet points as a plain text character? Office 2013
Novice
Replacing formatted bullet points as a plain text character?
 
Join Date: Feb 2017
Posts: 5
onlywonderboy is on a distinguished road
Default

Can do! Here is the sample text I've been working with.

Additionally here is the full code I'm working with

Quote:
Sub AsiaNetFormat()
'
' AsiaNetFormat Macro
'

ActiveDocument.ConvertNumbersToText

ActiveDocument.Select
Selection.ClearFormatting

With Selection.Find
.ClearFormatting
.Text = "^0233"
.Replacement.ClearFormatting
.Replacement.Text = " - "
.Execute Replace:=wdReplaceAll, Forward:=True, _
Wrap:=wdFindContinue
End With

With Selection.Find
.ClearFormatting
.Text = "®"
.Replacement.ClearFormatting
.Replacement.Text = "(R)"
.Execute Replace:=wdReplaceAll, Forward:=True, _
Wrap:=wdFindContinue
End With

With Selection.Find
.ClearFormatting
.Text = "©"
.Replacement.ClearFormatting
.Replacement.Text = "(C)"
.Execute Replace:=wdReplaceAll, Forward:=True, _
Wrap:=wdFindContinue
End With

With Selection.Find
.ClearFormatting
.Text = "™"
.Replacement.ClearFormatting
.Replacement.Text = "(TM)"
.Execute Replace:=wdReplaceAll, Forward:=True, _
Wrap:=wdFindContinue
End With

With Selection.Find
.ClearFormatting
.Text = "°"
.Replacement.ClearFormatting
.Replacement.Text = " degrees"
.Execute Replace:=wdReplaceAll, Forward:=True, _
Wrap:=wdFindContinue
End With

With Selection.Find
.ClearFormatting
.Text = "£"
.Replacement.ClearFormatting
.Replacement.Text = "pounds "
.Execute Replace:=wdReplaceAll, Forward:=True, _
Wrap:=wdFindContinue
End With

With Selection.Find
.ClearFormatting
.Text = "€"
.Replacement.ClearFormatting
.Replacement.Text = " euros"
.Execute Replace:=wdReplaceAll, Forward:=True, _
Wrap:=wdFindContinue
End With

Dim HLnk As Hyperlink
For Each HLnk In ActiveDocument.Hyperlinks
HLnk.Range.InsertAfter " (" & HLnk.Address & ")"

Next

Dim oField As Field
For Each oField In ActiveDocument.Fields
If oField.Type = wdFieldHyperlink Then
oField.Unlink
End If
Next
Set oField = Nothing




End Sub

Attached Files
File Type: docx Test 1.docx (13.8 KB, 24 views)
Reply With Quote
 

Tags
macro, replace, special characters

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Replacing formatted bullet points as a plain text character? Adding bullet points to rich text control dpashley Word 1 09-21-2016 08:59 AM
Help With Bullet Points In Powerpoint Phil_CF PowerPoint 2 09-10-2016 03:12 AM
Replacing formatted bullet points as a plain text character? Trouble using bullet points / sub bullet points within Word 2013 Mr Davo Word 2 04-18-2016 04:31 PM
Replacing formatted bullet points as a plain text character? Bullet Points in text boxes caz46 PowerPoint 2 11-17-2013 06:18 AM
Replacing formatted bullet points as a plain text character? Bullet points with text? jjmclell Word 2 03-01-2013 11:42 AM

Other Forums: Access Forums

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