#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
Replace "Dialog" with "=" throughout is a start
|
#3
|
|||
|
|||
Thanks - this works!
Do you happen to know, why Word automatically puts "Dialog" in there in the first place? Because otherwise it would empower people too much so they write too many Macros? |
#4
|
||||
|
||||
It doesn't put Dialog there when we record this on an English language version of Word for Windows.
Your 'Makro' name implies to me that you are using a non-English version and perhaps there is a translation bug happening there. Your profile also indicates you are on a Mac and perhaps that is also a factor with the mis-translation. I have been disappointed by Mac versions of Word - it really doesn't work as well as the Windows version.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#5
|
|||
|
|||
One other factor is even at its best, the macro recorder is a poor reflection of the actual activity. Some things do not get recorded at all, others get mis-interpreted.
|
#6
|
|||
|
|||
True, too true my Lord !
|
Thread Tools | |
Display Modes | |
|
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 |
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 |