Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-04-2012, 11:00 AM
mpdsal mpdsal is offline Formatting Cross-References in Word 2010 Windows XP Formatting Cross-References in Word 2010 Office 2007
Novice
Formatting Cross-References in Word 2010
 
Join Date: Nov 2011
Posts: 19
mpdsal is on a distinguished road
Default Formatting Cross-References in Word 2010

I am using Bookmarks and Cross References to update sections of a template I created. Everything is working fine except I want to remove line spaces in the Cross-Referenced field. I want the text to be identical but the spacing to be different. e.g.:



Bookmark 1 : Sentence
line space
Sentence,,, etc.

Cross-Ref (Bookmark1) : Sentence
Sentence

FYI. I tried the line spacing options set to 0 before and after and single spacing. I also played with the switch options \* charformat. Even when I manually delete line spaces they return whenever I Update Field.

Can anyone offer some other option or solution to this?

Thank you
Reply With Quote
  #2  
Old 12-04-2012, 12:47 PM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Formatting Cross-References in Word 2010 Windows 7 64bit Formatting Cross-References in Word 2010 Office 2010 32bit
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

Is this a single paragraph of text that you have bookmarked? Then you could just recreate the bookmark and make sure not to include the paragraph mark at the end of the paragraph; that way, line spacing and spacing before/after won't be included when you update the cross-reference.

Click the ¶ button on the Home tab to show/hide paragraph marks (¶) as well as other nonprinting marks.
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional

Last edited by Stefan Blom; 12-04-2012 at 03:17 PM.
Reply With Quote
  #3  
Old 12-04-2012, 01:28 PM
mpdsal mpdsal is offline Formatting Cross-References in Word 2010 Windows XP Formatting Cross-References in Word 2010 Office 2007
Novice
Formatting Cross-References in Word 2010
 
Join Date: Nov 2011
Posts: 19
mpdsal is on a distinguished road
Default

Stefan,

I'm not sure I understand what you are suggesting. As an example, the Detail section where the Bookmark is located consists of several paragraphs and in some cases bullet points. The bullet points are fine as I want to see those in both the bookmark and cross referenced sections. I just want to remove the space between the paragraphs only. Text and formatting are identical.

Thanks
Reply With Quote
  #4  
Old 12-04-2012, 03:26 PM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Formatting Cross-References in Word 2010 Windows 7 64bit Formatting Cross-References in Word 2010 Office 2010 32bit
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

OK, since the bookmark contains more than one paragraph, my previous suggestion isn't going to help.

When you cross-reference the text of a multi-paragraph bookmark, not only the content and the font formatting but also the paragraph formatting (such as line spacing, spacing before/after, indentation, numbering) may be included.

Try the following to get rid of the spacing between paragraphs in the cross-reference: First display the field code of the cross-reference (you can use Alt+F9 as a toggle) and remove the \* CHARFORMAT switch if it is present. Update the field. Then select the whole paragraphs containting the field result and, on the Page Layout tab of the ribbon, set Spacing Before and After to zero (do the same for Line Spacing if you want to). This should preserve the formatting and add a \* MERGEFORMAT switch to the field code.
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional

Last edited by Stefan Blom; 12-05-2012 at 04:12 PM.
Reply With Quote
  #5  
Old 12-05-2012, 10:29 AM
mpdsal mpdsal is offline Formatting Cross-References in Word 2010 Windows XP Formatting Cross-References in Word 2010 Office 2007
Novice
Formatting Cross-References in Word 2010
 
Join Date: Nov 2011
Posts: 19
mpdsal is on a distinguished road
Default

Stefan,

I followed your steps exactly and it didn't work either. Still goes back to the Bookmark format. How about the use of VBA if necessary? There must be a way to make this work.

Thank you for replying.

Mark
Reply With Quote
  #6  
Old 12-05-2012, 04:16 PM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Formatting Cross-References in Word 2010 Windows 7 64bit Formatting Cross-References in Word 2010 Office 2010 32bit
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

What I suggested does work in Word 2010, but apparently not in Word 2007. <Sigh>

You could bookmark the text of each paragraph separately, making sure not to include the paragraph mark. Then add multiple cross-references. This could be time-consuming, obviously.

For what it's worth, VBA wouldn't make the task any easier, as far as I can tell.
__________________
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
Formatting "slipping off" of cross references Boatwrenchv8 Word 6 10-16-2012 10:30 AM
Caption woes with cross-references/TOFs (Word 2007) Jhimmibhob Word 0 07-27-2011 08:37 AM
MS Word cross-references? entity022 Word 3 06-03-2010 06:37 AM
Formatting Cross References TrevorS Word 0 02-27-2010 08:11 AM
Cross References egcharles Office 0 04-19-2009 06:20 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:59 PM.


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