Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 05-02-2021, 06:22 AM
Thorin23 Thorin23 is offline Assign different heading styles for different paragraphs Windows 10 Assign different heading styles for different paragraphs Office 2016
Novice
Assign different heading styles for different paragraphs
 
Join Date: Apr 2021
Posts: 4
Thorin23 is on a distinguished road
Default

Hello everyone,

First, thank you very much for your help and your involvement for this problem.

Concerning your code @gmayor, I tried it and add two lines :
Code:
If oPara.range.characters(1) = Chr(13) then 
GoTo Skip
End if
and this works wonderfully

So a huge thank you for that ! Now, I'm going to read each line of your code in order to understand and reuse them for a futur project.

I also tried the shortcut : Ctrl-Alt-K
And this one works but not as expected for my document which have a particular set-up.

Thank you again for your help and all the best !
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Formatting all paragraphs based on pre defined styles afif Word VBA 0 07-26-2019 06:18 AM
Add a heading for each paragraph depending on the previous paragraphs numbering herman Word 4 07-15-2019 09:48 PM
Assign different heading styles for different paragraphs Heading and the paragraphs grouped together in MS Word 2007 Volle13 Word 8 12-05-2016 06:14 PM
Assign different heading styles for different paragraphs Styles: Heading 4 stuck at same heading number Hallet Word 1 05-31-2012 02:37 PM
Assign different heading styles for different paragraphs How to have two styles for heading 1? Jamal NUMAN Word 3 07-24-2011 04:33 PM

Other Forums: Access Forums

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