Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 11-09-2023, 12:31 AM
RobiNew RobiNew is offline Formatting specific paragraphs with styles without using Selection Windows 10 Formatting specific paragraphs with styles without using Selection Office 2016
Competent Performer
Formatting specific paragraphs with styles without using Selection
 
Join Date: Sep 2023
Posts: 231
RobiNew is on a distinguished road
Default

Thank you very much indeed, Gmaxey! It is all very instructive. The code works perfectly, but the style in .Paragraphs(3) - which includes Character: Italics - fails to convert to italics. Is there a simple way to force the change? Many thanks!


UPDATE: I managed to amend using:
.Paragraphs(3).Range.Style = wdStyleDefaultParagraphFont
.Paragraphs(3).Range.Style = "Mystyle"
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Formatting specific paragraphs with styles without using Selection Assign different heading styles for different paragraphs Thorin23 Word VBA 3 05-02-2021 06:22 AM
Formatting all paragraphs based on pre defined styles afif Word VBA 0 07-26-2019 06:18 AM
Formatting specific paragraphs with styles without using Selection Make paragraphs appear according to specific combination razdul Word VBA 2 04-17-2019 06:17 AM
Trouble Formatting Specific Paragraphs - Bullets, Spacing, Centering, etc adzialo Word 2 05-01-2017 12:53 PM
Formatting specific paragraphs with styles without using Selection Selection of all Text for a specific page in word is spanning selection across pages ramsgarla Word VBA 9 12-05-2012 03:23 AM

Other Forums: Access Forums

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