Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 12-15-2018, 10:54 PM
gmayor's Avatar
gmayor gmayor is offline Change macro to only use large bullets Windows 10 Change macro to only use large bullets Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,138
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

While it would be preferable, as Andrew suggests, to use styles for the body and bullet paragraphs, your macro will do what you require if you add code to reset the paragraph format and font of the pasted text.

Note also that as this works with paragraphs, you will get some odd results if you paste text that has line breaks rather than paragraph breaks e.g. pasting from your message example.
Code:
Sub BulletsAndSizer()
Dim aRng As Range
    Set aRng = Selection.Range
    aRng.Text = Replace(aRng.Text, Chr(11), Chr(13))
    If Len(aRng.Text) > 0 Then aRng.Style = "List Bullet"
    With aRng
        .Expand Unit:=wdStory
        .Font.Reset
        .ParagraphFormat.Reset
        .Font.Size = 18
        .Font.Name = "Times New Roman"
    End With
    Set aRng = Nothing
End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change default bullets settings in Word 2016? kevinbradley57 Word 4 10-05-2018 09:50 AM
Bullets automatically change values AllenWalker Word 4 07-18-2018 06:43 AM
How do I get bullets and text to change color together? jborchel PowerPoint 0 12-05-2012 03:16 PM
Change macro to only use large bullets Change color of text in bullets franklyorange PowerPoint 2 06-22-2010 04:51 AM
Is there a way to change the header in a large amount of documents at one time? ntsstaffing Word 1 07-11-2009 12:12 PM

Other Forums: Access Forums

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


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