Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 02-24-2022, 02:55 PM
Guessed's Avatar
Guessed Guessed is offline Keeping a macro from going beyond selection Windows 10 Keeping a macro from going beyond selection Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

My question was about looking for (..) which was double periods inside brackets. I didn't see why that one was necessary. If you have double periods not inside brackets then you can add that case at the bottom.

You can remove italics right up the top by adding this line below the one included
Code:
Selection.Style = ActiveDocument.Styles("N-BodyText,n-bd")
Selection.Font.Italic = False
Alternatively, you can remove all local font attributes (bold, italic, colour, size etc) which might be overriding the style's font settings by using this line instead
Code:
Selection.Font.Reset
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to auto add upon selection paulie102003 Excel Programming 2 01-04-2018 01:10 AM
Keeping a macro from going beyond selection How to trigger a macro on cell *selection* Larry_1 Excel Programming 6 12-24-2017 11:09 AM
Keeping a macro from going beyond selection Mail Merge keeping VBA Macro Piney Word VBA 5 08-03-2015 04:12 PM
Keeping a macro from going beyond selection Limiting a macro to a selection Ulodesk Word VBA 4 06-19-2012 06:09 AM
Printing a Selection in Word and keeping it in the same place on the page punkrae Word 0 03-29-2012 10:49 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:42 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