A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

^p means carriage return



 
 
Thread Tools Display Modes
  #1  
Old April 14th, 2010, 07:40 AM posted to microsoft.public.word.docmanagement
Jane
external usenet poster
 
Posts: 464
Default ^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  
Old April 14th, 2010, 08:12 AM posted to microsoft.public.word.docmanagement
Graham Mayor
external usenet poster
 
Posts: 18,297
Default ^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  
Old April 14th, 2010, 09:20 AM posted to microsoft.public.word.docmanagement
DeanH
external usenet poster
 
Posts: 1,783
Default ^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

  #4  
Old April 14th, 2010, 01:33 PM posted to microsoft.public.word.docmanagement
macropod[_2_]
external usenet poster
 
Posts: 2,402
Default ^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

  #5  
Old April 15th, 2010, 07:53 AM posted to microsoft.public.word.docmanagement
DeanH
external usenet poster
 
Posts: 1,783
Default ^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

.

  #6  
Old April 15th, 2010, 08:29 AM posted to microsoft.public.word.docmanagement
macropod[_2_]
external usenet poster
 
Posts: 2,402
Default ^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

.


  #7  
Old April 15th, 2010, 09:26 AM posted to microsoft.public.word.docmanagement
DeanH
external usenet poster
 
Posts: 1,783
Default ^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
.


.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:33 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.