Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-20-2014, 10:52 AM
mjawatney mjawatney is offline Changing Paragraph Styles Windows Vista Changing Paragraph Styles Office 2007
Novice
Changing Paragraph Styles
 
Join Date: Apr 2014
Posts: 4
mjawatney is on a distinguished road
Default Changing Paragraph Styles

I am going quietly mad trying to find a way in Word to change automatically the paragraph format throughout a long document, specifically from block paragraphs (no indent, blank line between paragraphs) to indented paragraphs (no blank line, indent three spaces).



Now, in WordPerfect it was easy to design the macro:

Replace <full stop><Return><Return> with <full stop><Return><space><space><space>

Trying to do this in Word did not work. The search string would not accept Enter as a valid search term: the keystroke was interpreted as my ending the definition.

So I used the pilcrow symbol from the Character Map instead of the keystroke. This was accepted into the search string, but when the Replace was run it did not recognise line breaks (Returns = pilcrows) and did nothing.

There must be a simple way to do this, using either Replace or a macro. Advice?

Note that this document will undergo e-book conversion, which will strip away all formatting, so it is not acceptable to play games with the margin/first-line-indent features. The indent must be created as three spaces.
Reply With Quote
  #2  
Old 04-20-2014, 11:17 AM
fumei fumei is offline Changing Paragraph Styles Windows 7 64bit Changing Paragraph Styles Office XP
Expert
 
Join Date: Jan 2013
Posts: 440
fumei is on a distinguished road
Default

It would be much easier (childs play really) if you used Styles, the way Word is designed to be used.
Quote:
specifically from block paragraphs (no indent, blank line between paragraphs) to indented paragraphs (no blank line, indent three spaces).
The latter is NOT an indented paragraph. Again, if these are styles, it would take a very simple exercise to change things.
Reply With Quote
  #3  
Old 04-20-2014, 11:30 AM
JimP JimP is offline Changing Paragraph Styles Windows 7 32bit Changing Paragraph Styles Office 2010 32bit
Experienced User
 
Join Date: Jun 2010
Location: Virginia Beach, VA
Posts: 742
JimP will become famous soon enough
Default

Agree with fumei. Here is a link that may help you get started:

http://shaunakelly.com/word/styles/tipsonstyles.html

Of course, there are many other links others may provide...
Reply With Quote
  #4  
Old 04-20-2014, 03:39 PM
mjawatney mjawatney is offline Changing Paragraph Styles Windows Vista Changing Paragraph Styles Office 2007
Novice
Changing Paragraph Styles
 
Join Date: Apr 2014
Posts: 4
mjawatney is on a distinguished road
Default

Surely Styles creates formats?

The point I am making is that e-book conversion rips away all formatting, leaving you with just the most basic text. This is why indents have to be registered as three spaces. A Style won't pass through the conversion process (why would it? An e-book doesn't have the concept of a Style). Even successive Returns can cause problems on conversion.

I do need advice specifically on creating a macro (or getting the Replace function to recognise the pilcrow). I would especially welcome advice from someone who has published an e-book and so understands this particular challenge.
Reply With Quote
  #5  
Old 04-20-2014, 04:07 PM
mjawatney mjawatney is offline Changing Paragraph Styles Windows Vista Changing Paragraph Styles Office 2007
Novice
Changing Paragraph Styles
 
Join Date: Apr 2014
Posts: 4
mjawatney is on a distinguished road
Default

I have had a quick look at Styles, and what I say is true. I can only find two Styles (Manuscript and Traditional) that create indents, and BOTH of them do so merely by moving the first line indent marker (which, of course, I could do manually if that were any sort of solution). Neither removes the blank line.

In the link you gave me, it specifically states "A Style is a collection of formatting instructions". Indeed. Which is why your solution won't survive conversion.

Fumie: your claim that what I have described is not an indented paragraph suggests you are thinking purely in terms of Word. I am talking about typography, not computing. Since Caxton's time, indents have been made by three or more spaces (three or more 'ens'). Since all formatting is about to be destroyed, we have to go back to basics like this.

For, after conversion, I am going to end up with just an ASCII string and some carriage returns ... which is hardly surprising since an e-book has no pages and each e-book platform has different sizes of screen.
Reply With Quote
  #6  
Old 04-20-2014, 04:27 PM
JimP JimP is offline Changing Paragraph Styles Windows 7 32bit Changing Paragraph Styles Office 2010 32bit
Experienced User
 
Join Date: Jun 2010
Location: Virginia Beach, VA
Posts: 742
JimP will become famous soon enough
Default

Now, I will be the first to admit that I know next to nothing about ebooks; however, your comments led me to google the topic using Word to create ebooks and, in the first paragraph, it indicated "using styles to create.....". Here is the link I refer to: http://www.pcworld.com/article/25361..._an_ebook.html.

Now, if that article is all hogwash and does not work...well, I digress. I just thought was interesting in that you say it would not work (i.e., stripping format) and the article mentions that it does.

In any case, I will step back and hopefully, someone else can help you.
Reply With Quote
  #7  
Old 04-20-2014, 05:15 PM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Changing Paragraph Styles Windows 7 64bit Changing Paragraph Styles Office 2013
Moderator
 
Join Date: Aug 2011
Posts: 3,907
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

Word doesn't have "reveal codes," so you have to apply a different logic. In the Find and Replace dialog box in Word, ^p represents a paragraph mark (assuming that "Use wildcards" is cleared).

At least in theory, you can replace ".^p^p" with ".^p " (not including the quotation marks). But this will create a paragraph starting with three space characters, which is not the same as a first line indent in Word.

Getting rid of duplicate paragraph marks, via Find and Replace, and then applying the appropriate styles to text is a more convenient, long-term solution.
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Paragraph styles in Outlook when sharing a link from SharePoint jjmclell Outlook 0 11-21-2012 09:59 AM
Paragraph space before - can styles apply it intelligently? timpani Word 7 10-23-2012 04:08 PM
Changing Paragraph Styles Restricting paragraph styles without restricting character styles Red Pill Word 5 05-25-2012 01:06 PM
Changing Paragraph Styles Multiple styles in same paragraph? Cobb78 Word 1 05-20-2012 03:04 PM
Does Word do this when applying Styles to a paragraph a second time? Bobosmite Word 2 04-17-2012 02:13 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:51 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft