Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-20-2020, 04:52 AM
Tom1956 Tom1956 is offline What is the syntax error with .Text "^p" ? Mac OS X What is the syntax error with .Text "^p" ? Office 2016 for Mac
Novice
What is the syntax error with .Text "^p" ?
 
Join Date: Sep 2020
Posts: 3
Tom1956 is on a distinguished road
Default What is the syntax error with .Text "^p" ?

The Macro was recorded automatically by word but doesn't work because of a "syntax error" what can it be?

Sub Makro2()
'
' Makro2 Makro
'
'
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text Dialog "^p"
.Replacement.Text Dialog " "
.Forward Dialog True
.Wrap Dialog wdFindContinue
.Format Dialog False
.MatchCase Dialog False
.MatchWholeWord Dialog False
.MatchWildcards Dialog False
.MatchSoundsLike Dialog False
.MatchAllWordForms Dialog False
End With
Selection.Find.Execute Replace:=wdReplaceAll
End Sub
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
"Magic" indentation for "too-long" text-lines that are longer than one line pGrnd Word 2 04-20-2020 03:23 PM
"Word found unreadable content..." + "Word experienced an error trying to open..." onas Word 1 09-02-2019 10:52 AM
What is the syntax error with .Text "^p" ? The "body of text" for all odd-numbered pages are all "vertically-centered-aligned". keepcalmandreadabook Word 5 03-27-2017 04:08 PM
I keep getting an error when downloading email "An unknown error has occurred. 0x8004060" dbassman Outlook 0 07-15-2016 04:15 PM
Error: "Changes made were lost...reconnect with server", when switching "from" field randhurrle Outlook 2 02-25-2015 06:51 PM

Other Forums: Access Forums

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