Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 03-13-2012, 05:00 PM
macropod's Avatar
macropod macropod is offline Text Spacing in document Windows 7 64bit Text Spacing in document Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,512
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Yes, that looks OK, though you don't need the With .. End With structure given you're only doing one thing with the range:
Code:
Private Sub txtEnclosureAttached_Update()
Dim Rng As Range
Set Rng = ActiveDocument.Bookmarks(bmkEnclosureAttached).Range
Rng.Text = Replace(Enclosures.Text, vbCr, ", ")
Application.ScreenRefresh
ActiveDocument.Bookmarks.Add bmkEnclosureAttached, Rng 
End Sub
You also don't need the 'Application.ScreenRefresh' unless it's important to be able to see the document update.

PS: Please use code tags when posting code - you can find them on the Advanced tab.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bug in PPT 2007 - Font and line spacing in text boxes Amateur PowerPoint 0 09-01-2010 03:34 AM
How do I import text columns with specified spacing between words w/o losing format? Fucius Word 0 08-09-2010 06:23 PM
Text Spacing in document Import Text from File - Line Spacing marshalx Word 2 10-28-2009 02:37 AM
Print spacing in Word document veekay99 Word 16 04-21-2009 01:18 AM
How to link text from one document to another nospamforyou Word 0 10-09-2008 09:14 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:53 AM.


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