Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-19-2024, 07:35 PM
Jakov93 Jakov93 is offline Change the Lists Font and Indentation for All Lists Windows 10 Change the Lists Font and Indentation for All Lists Office 2010
Advanced Beginner
Change the Lists Font and Indentation for All Lists
 
Join Date: Jul 2021
Posts: 45
Jakov93 is on a distinguished road
Default Change the Lists Font and Indentation for All Lists

Hi,


I have a document with many lists (numbers and bullets), I want a macro to change the text font to "Times New Roman" for all lists at once, and also change the list indentation to "Space" for all lists in the document.
Thanks
Reply With Quote
  #2  
Old 02-20-2024, 02:46 AM
gmaxey gmaxey is online now Change the Lists Font and Indentation for All Lists Windows 10 Change the Lists Font and Indentation for All Lists Office 2019
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,429
gmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the rough
Default

What you have tried? You start a macro with something like:


Sub ReformatMyList()


You end a macro with



End Sub.
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
  #3  
Old 02-20-2024, 03:23 AM
Jakov93 Jakov93 is offline Change the Lists Font and Indentation for All Lists Windows 10 Change the Lists Font and Indentation for All Lists Office 2010
Advanced Beginner
Change the Lists Font and Indentation for All Lists
 
Join Date: Jul 2021
Posts: 45
Jakov93 is on a distinguished road
Default

Quote:
Originally Posted by gmaxey View Post
What you have tried? You start a macro with something like:


Sub ReformatMyList()


You end a macro with



End Sub.
Actually, I am not started with anything, but this my idea, because I changed three lists, but it takes time, as I have many of them.
Reply With Quote
  #4  
Old 02-21-2024, 03:41 AM
gmaxey gmaxey is online now Change the Lists Font and Indentation for All Lists Windows 10 Change the Lists Font and Indentation for All Lists Office 2019
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,429
gmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the rough
Default

We are not a code writing service. We are here to help people learn to use VBA.


Here is something to get you started:


Code:
Sub ScratchMacro()
'A basic Word Macro coded by Gregory K. Maxey
Dim colList As ListParagraphs
Dim lngIndex As Long
  Set colList = ActiveDocument.Range.ListParagraphs
  For lngIndex = 1 To colList.Count
    colList(lngIndex).Range.Font.Name = "Times New Roman"
  Next
lbl_Exit:
  Exit Sub
End Sub
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
  #5  
Old 02-21-2024, 04:34 AM
Italophile Italophile is offline Change the Lists Font and Indentation for All Lists Windows 11 Change the Lists Font and Indentation for All Lists Office 2021
Expert
 
Join Date: Mar 2022
Posts: 338
Italophile is just really niceItalophile is just really niceItalophile is just really niceItalophile is just really nice
Default

If you have created the lists correctly all you would need to do is change the list style to use a space, and change the paragraph style to use a different font.

You may find it helpful to review:
How to control bullets in Word 2007 and Word 2010 | ShaunaKelly.com
Use a style to format text in your Microsoft Word document | ShaunaKelly.com
Reply With Quote
  #6  
Old 02-21-2024, 12:16 PM
Jakov93 Jakov93 is offline Change the Lists Font and Indentation for All Lists Windows 10 Change the Lists Font and Indentation for All Lists Office 2010
Advanced Beginner
Change the Lists Font and Indentation for All Lists
 
Join Date: Jul 2021
Posts: 45
Jakov93 is on a distinguished road
Default

Quote:
Originally Posted by gmaxey View Post
We are not a code writing service. We are here to help people learn to use VBA.
I am sorry and thank you
Just one last thing, now the font is changed, but I want to follow the lists number or bullet with space, not a tab
Thank you
Reply With Quote
  #7  
Old 02-21-2024, 12:22 PM
Jakov93 Jakov93 is offline Change the Lists Font and Indentation for All Lists Windows 10 Change the Lists Font and Indentation for All Lists Office 2010
Advanced Beginner
Change the Lists Font and Indentation for All Lists
 
Join Date: Jul 2021
Posts: 45
Jakov93 is on a distinguished road
Default

Quote:
Originally Posted by Italophile View Post
If you have created the lists correctly all you would need to do is change the list style to use a space, and change the paragraph style to use a different font.
I tried to change the style before posting here, but it produced undesired results for my document.
Thank you
Reply With Quote
  #8  
Old 02-21-2024, 01:02 PM
Italophile Italophile is offline Change the Lists Font and Indentation for All Lists Windows 11 Change the Lists Font and Indentation for All Lists Office 2021
Expert
 
Join Date: Mar 2022
Posts: 338
Italophile is just really niceItalophile is just really niceItalophile is just really niceItalophile is just really nice
Default

Quote:
Originally Posted by Jakov93 View Post
I tried to change the style before posting here, but it produced undesired results for my document.
Thank you
Then I suggest you work through the links I posted previously and learn how to use styles correctly. It will save you a lot of time in the future.
Reply With Quote
  #9  
Old 02-26-2024, 12:56 PM
Jakov93 Jakov93 is offline Change the Lists Font and Indentation for All Lists Windows 10 Change the Lists Font and Indentation for All Lists Office 2010
Advanced Beginner
Change the Lists Font and Indentation for All Lists
 
Join Date: Jul 2021
Posts: 45
Jakov93 is on a distinguished road
Default Change the Lists Indentation for All Lists

Quote:
Originally Posted by gmaxey View Post
Code:
Sub ScratchMacro()
'A basic Word Macro coded by Gregory K. Maxey
Dim colList As ListParagraphs
Dim lngIndex As Long
  Set colList = ActiveDocument.Range.ListParagraphs
  For lngIndex = 1 To colList.Count
    colList(lngIndex).Range.Font.Name = "Times New Roman"
  Next
lbl_Exit:
  Exit Sub
End Sub

Dear gmaxey,
I want to follow the list number or bullet with space, not a tab for all lsits.
Thank you
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Comparing two lists and extracting values missing from both lists Dave T Excel Programming 4 11-01-2018 11:51 PM
Creating global contact lists (distribution lists) Outlook 2011 Mac pengyou Outlook 0 09-10-2016 02:18 PM
Change the Lists Font and Indentation for All Lists I want to create a lists within lists (nested merges) AndyS Mail Merge 10 12-11-2015 03:05 PM
Multilevel lists and paragraph indentation computerdummy Word 2 04-27-2012 02:32 PM
Change the Lists Font and Indentation for All Lists Bulleted Lists - Changing Font mhartman09 Word 2 12-10-2010 12:18 PM

Other Forums: Access Forums

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