Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
^p means carriage return
I am using Word 2003.
I have a macro that replaces ^p^p^p with ^p^p in a work document. I have worked out that ^p is a carriage return. Is there a list of what ^p means and others? I have a list of bullet points and when the macro does the replace above it removes the last carriage return so I get a bullet point on the next line with nothing next to it. I want to find out how to search for the bullet point with nothing next to it and replace with a blank. -- Jane |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
^p means carriage return
See http://www.gmayor.com/replace_using_wildcards.htm
-- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org "Jane" wrote in message ... I am using Word 2003. I have a macro that replaces ^p^p^p with ^p^p in a work document. I have worked out that ^p is a carriage return. Is there a list of what ^p means and others? I have a list of bullet points and when the macro does the replace above it removes the last carriage return so I get a bullet point on the next line with nothing next to it. I want to find out how to search for the bullet point with nothing next to it and replace with a blank. -- Jane |
#3
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
^p means carriage return
See http://www.gmayor.com/replace_using_wildcards.htm
-- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org "Jane" wrote in message ... I am using Word 2003. I have a macro that replaces ^p^p^p with ^p^p in a work document. I have worked out that ^p is a carriage return. Is there a list of what ^p means and others? I have a list of bullet points and when the macro does the replace above it removes the last carriage return so I get a bullet point on the next line with nothing next to it. I want to find out how to search for the bullet point with nothing next to it and replace with a blank. -- Jane |
#4
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
^p means carriage return
In addition to what Graham has posted, I would also change the macro fo
change ^p^p to ^p, that way you wont get the superfluos paragraph marks. Then sort out the styles to include Space After in the Paragraph attributes to give you the effect of the layout you got with the superfluous paragraph mark. Using Paragraph Marks (Returns) purely for spacing is not the best way to use Word and it will cause problems, as you have already described. Hope this helps DeanH "Jane" wrote: I am using Word 2003. I have a macro that replaces ^p^p^p with ^p^p in a work document. I have worked out that ^p is a carriage return. Is there a list of what ^p means and others? I have a list of bullet points and when the macro does the replace above it removes the last carriage return so I get a bullet point on the next line with nothing next to it. I want to find out how to search for the bullet point with nothing next to it and replace with a blank. -- Jane |
#5
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
^p means carriage return
In addition to what Graham has posted, I would also change the macro fo
change ^p^p to ^p, that way you wont get the superfluos paragraph marks. Then sort out the styles to include Space After in the Paragraph attributes to give you the effect of the layout you got with the superfluous paragraph mark. Using Paragraph Marks (Returns) purely for spacing is not the best way to use Word and it will cause problems, as you have already described. Hope this helps DeanH "Jane" wrote: I am using Word 2003. I have a macro that replaces ^p^p^p with ^p^p in a work document. I have worked out that ^p is a carriage return. Is there a list of what ^p means and others? I have a list of bullet points and when the macro does the replace above it removes the last carriage return so I get a bullet point on the next line with nothing next to it. I want to find out how to search for the bullet point with nothing next to it and replace with a blank. -- Jane |
#6
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
^p means carriage return
Hi DeanH,
An even better Find/Replace expression would be: Find = (^13)[^13]{1,} Replace = \1 with: ..MatchWildcards = True That way, only one Find/Replace action is needed. -- Cheers macropod [Microsoft MVP - Word] "DeanH" wrote in message ... In addition to what Graham has posted, I would also change the macro fo change ^p^p to ^p, that way you wont get the superfluos paragraph marks. Then sort out the styles to include Space After in the Paragraph attributes to give you the effect of the layout you got with the superfluous paragraph mark. Using Paragraph Marks (Returns) purely for spacing is not the best way to use Word and it will cause problems, as you have already described. Hope this helps DeanH "Jane" wrote: I am using Word 2003. I have a macro that replaces ^p^p^p with ^p^p in a work document. I have worked out that ^p is a carriage return. Is there a list of what ^p means and others? I have a list of bullet points and when the macro does the replace above it removes the last carriage return so I get a bullet point on the next line with nothing next to it. I want to find out how to search for the bullet point with nothing next to it and replace with a blank. -- Jane |
#7
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
^p means carriage return
Hi DeanH, An even better Find/Replace expression would be: Find = (^13)[^13]{1,} Replace = \1 with: ..MatchWildcards = True That way, only one Find/Replace action is needed. -- Cheers macropod [Microsoft MVP - Word] "DeanH" wrote in message ... In addition to what Graham has posted, I would also change the macro fo change ^p^p to ^p, that way you wont get the superfluos paragraph marks. Then sort out the styles to include Space After in the Paragraph attributes to give you the effect of the layout you got with the superfluous paragraph mark. Using Paragraph Marks (Returns) purely for spacing is not the best way to use Word and it will cause problems, as you have already described. Hope this helps DeanH "Jane" wrote: I am using Word 2003. I have a macro that replaces ^p^p^p with ^p^p in a work document. I have worked out that ^p is a carriage return. Is there a list of what ^p means and others? I have a list of bullet points and when the macro does the replace above it removes the last carriage return so I get a bullet point on the next line with nothing next to it. I want to find out how to search for the bullet point with nothing next to it and replace with a blank. -- Jane |
#8
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
^p means carriage return
Macropod,
Very true and a nice neat way of doing the job. The article Graham attached does show that this is possible. My hope was that Jane would understand that superfluous paragraph marks should not be used for spacing purposes. They are the bain of my life from certain contributors I have and they just wont learn :-( ....maybe one day... ;-) DeanH "macropod" wrote: Hi DeanH, An even better Find/Replace expression would be: Find = (^13)[^13]{1,} Replace = \1 with: ..MatchWildcards = True That way, only one Find/Replace action is needed. -- Cheers macropod [Microsoft MVP - Word] "DeanH" wrote in message ... In addition to what Graham has posted, I would also change the macro fo change ^p^p to ^p, that way you wont get the superfluos paragraph marks. Then sort out the styles to include Space After in the Paragraph attributes to give you the effect of the layout you got with the superfluous paragraph mark. Using Paragraph Marks (Returns) purely for spacing is not the best way to use Word and it will cause problems, as you have already described. Hope this helps DeanH "Jane" wrote: I am using Word 2003. I have a macro that replaces ^p^p^p with ^p^p in a work document. I have worked out that ^p is a carriage return. Is there a list of what ^p means and others? I have a list of bullet points and when the macro does the replace above it removes the last carriage return so I get a bullet point on the next line with nothing next to it. I want to find out how to search for the bullet point with nothing next to it and replace with a blank. -- Jane . |
#9
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
^p means carriage return
Macropod,
Very true and a nice neat way of doing the job. The article Graham attached does show that this is possible. My hope was that Jane would understand that superfluous paragraph marks should not be used for spacing purposes. They are the bain of my life from certain contributors I have and they just wont learn :-( ....maybe one day... ;-) DeanH "macropod" wrote: Hi DeanH, An even better Find/Replace expression would be: Find = (^13)[^13]{1,} Replace = \1 with: ..MatchWildcards = True That way, only one Find/Replace action is needed. -- Cheers macropod [Microsoft MVP - Word] "DeanH" wrote in message ... In addition to what Graham has posted, I would also change the macro fo change ^p^p to ^p, that way you wont get the superfluos paragraph marks. Then sort out the styles to include Space After in the Paragraph attributes to give you the effect of the layout you got with the superfluous paragraph mark. Using Paragraph Marks (Returns) purely for spacing is not the best way to use Word and it will cause problems, as you have already described. Hope this helps DeanH "Jane" wrote: I am using Word 2003. I have a macro that replaces ^p^p^p with ^p^p in a work document. I have worked out that ^p is a carriage return. Is there a list of what ^p means and others? I have a list of bullet points and when the macro does the replace above it removes the last carriage return so I get a bullet point on the next line with nothing next to it. I want to find out how to search for the bullet point with nothing next to it and replace with a blank. -- Jane . |
#10
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
^p means carriage return
Hi DeanH,
I know what you mean - they're probably part of the same group that hard-formats everything in sight, totally oblivious to the underlying Styles (but mostly they just use 'Normal') and don't even do that in a consistent manner ... -- Cheers macropod [Microsoft MVP - Word] "DeanH" wrote in message ... Macropod, Very true and a nice neat way of doing the job. The article Graham attached does show that this is possible. My hope was that Jane would understand that superfluous paragraph marks should not be used for spacing purposes. They are the bain of my life from certain contributors I have and they just wont learn :-( ...maybe one day... ;-) DeanH "macropod" wrote: Hi DeanH, An even better Find/Replace expression would be: Find = (^13)[^13]{1,} Replace = \1 with: ..MatchWildcards = True That way, only one Find/Replace action is needed. -- Cheers macropod [Microsoft MVP - Word] "DeanH" wrote in message ... In addition to what Graham has posted, I would also change the macro fo change ^p^p to ^p, that way you wont get the superfluos paragraph marks. Then sort out the styles to include Space After in the Paragraph attributes to give you the effect of the layout you got with the superfluous paragraph mark. Using Paragraph Marks (Returns) purely for spacing is not the best way to use Word and it will cause problems, as you have already described. Hope this helps DeanH "Jane" wrote: I am using Word 2003. I have a macro that replaces ^p^p^p with ^p^p in a work document. I have worked out that ^p is a carriage return. Is there a list of what ^p means and others? I have a list of bullet points and when the macro does the replace above it removes the last carriage return so I get a bullet point on the next line with nothing next to it. I want to find out how to search for the bullet point with nothing next to it and replace with a blank. -- Jane . |
#11
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
^p means carriage return
Hi DeanH,
I know what you mean - they're probably part of the same group that hard-formats everything in sight, totally oblivious to the underlying Styles (but mostly they just use 'Normal') and don't even do that in a consistent manner ... -- Cheers macropod [Microsoft MVP - Word] "DeanH" wrote in message ... Macropod, Very true and a nice neat way of doing the job. The article Graham attached does show that this is possible. My hope was that Jane would understand that superfluous paragraph marks should not be used for spacing purposes. They are the bain of my life from certain contributors I have and they just wont learn :-( ...maybe one day... ;-) DeanH "macropod" wrote: Hi DeanH, An even better Find/Replace expression would be: Find = (^13)[^13]{1,} Replace = \1 with: ..MatchWildcards = True That way, only one Find/Replace action is needed. -- Cheers macropod [Microsoft MVP - Word] "DeanH" wrote in message ... In addition to what Graham has posted, I would also change the macro fo change ^p^p to ^p, that way you wont get the superfluos paragraph marks. Then sort out the styles to include Space After in the Paragraph attributes to give you the effect of the layout you got with the superfluous paragraph mark. Using Paragraph Marks (Returns) purely for spacing is not the best way to use Word and it will cause problems, as you have already described. Hope this helps DeanH "Jane" wrote: I am using Word 2003. I have a macro that replaces ^p^p^p with ^p^p in a work document. I have worked out that ^p is a carriage return. Is there a list of what ^p means and others? I have a list of bullet points and when the macro does the replace above it removes the last carriage return so I get a bullet point on the next line with nothing next to it. I want to find out how to search for the bullet point with nothing next to it and replace with a blank. -- Jane . |
#12
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
^p means carriage return
Macropod, yep, that's them, the "normal-for-everything" brigade :-)
DeanH "macropod" wrote: Hi DeanH, I know what you mean - they're probably part of the same group that hard-formats everything in sight, totally oblivious to the underlying Styles (but mostly they just use 'Normal') and don't even do that in a consistent manner ... -- Cheers macropod [Microsoft MVP - Word] "DeanH" wrote in message ... Macropod, Very true and a nice neat way of doing the job. The article Graham attached does show that this is possible. My hope was that Jane would understand that superfluous paragraph marks should not be used for spacing purposes. They are the bain of my life from certain contributors I have and they just wont learn :-( ...maybe one day... ;-) DeanH "macropod" wrote: Hi DeanH, An even better Find/Replace expression would be: Find = (^13)[^13]{1,} Replace = \1 with: ..MatchWildcards = True That way, only one Find/Replace action is needed. -- Cheers macropod [Microsoft MVP - Word] "DeanH" wrote in message ... In addition to what Graham has posted, I would also change the macro fo change ^p^p to ^p, that way you wont get the superfluos paragraph marks. Then sort out the styles to include Space After in the Paragraph attributes to give you the effect of the layout you got with the superfluous paragraph mark. Using Paragraph Marks (Returns) purely for spacing is not the best way to use Word and it will cause problems, as you have already described. Hope this helps DeanH "Jane" wrote: I am using Word 2003. I have a macro that replaces ^p^p^p with ^p^p in a work document. I have worked out that ^p is a carriage return. Is there a list of what ^p means and others? I have a list of bullet points and when the macro does the replace above it removes the last carriage return so I get a bullet point on the next line with nothing next to it. I want to find out how to search for the bullet point with nothing next to it and replace with a blank. -- Jane . . |
#13
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
^p means carriage return
Macropod, yep, that's them, the "normal-for-everything" brigade :-)
DeanH "macropod" wrote: Hi DeanH, I know what you mean - they're probably part of the same group that hard-formats everything in sight, totally oblivious to the underlying Styles (but mostly they just use 'Normal') and don't even do that in a consistent manner ... -- Cheers macropod [Microsoft MVP - Word] "DeanH" wrote in message ... Macropod, Very true and a nice neat way of doing the job. The article Graham attached does show that this is possible. My hope was that Jane would understand that superfluous paragraph marks should not be used for spacing purposes. They are the bain of my life from certain contributors I have and they just wont learn :-( ...maybe one day... ;-) DeanH "macropod" wrote: Hi DeanH, An even better Find/Replace expression would be: Find = (^13)[^13]{1,} Replace = \1 with: ..MatchWildcards = True That way, only one Find/Replace action is needed. -- Cheers macropod [Microsoft MVP - Word] "DeanH" wrote in message ... In addition to what Graham has posted, I would also change the macro fo change ^p^p to ^p, that way you wont get the superfluos paragraph marks. Then sort out the styles to include Space After in the Paragraph attributes to give you the effect of the layout you got with the superfluous paragraph mark. Using Paragraph Marks (Returns) purely for spacing is not the best way to use Word and it will cause problems, as you have already described. Hope this helps DeanH "Jane" wrote: I am using Word 2003. I have a macro that replaces ^p^p^p with ^p^p in a work document. I have worked out that ^p is a carriage return. Is there a list of what ^p means and others? I have a list of bullet points and when the macro does the replace above it removes the last carriage return so I get a bullet point on the next line with nothing next to it. I want to find out how to search for the bullet point with nothing next to it and replace with a blank. -- Jane . . |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Carriage Return Help | Mailmerge | |||
Carriage Return Help | Mailmerge | |||
Carriage Return | Microsoft Word Help | |||
Disable carriage return | Microsoft Word Help | |||
Search and replace hard-line-return character, not carriage return | Microsoft Word Help |