Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #16  
Old 12-25-2015, 03:01 AM
jc491's Avatar
jc491 jc491 is offline VBA Word  - Find & Apply Styles to Specific Words - Using Case Statement Windows 10 VBA Word  - Find & Apply Styles to Specific Words - Using Case Statement Office 2016
VBA Novice
VBA Word  - Find & Apply Styles to Specific Words - Using Case Statement
 
Join Date: Sep 2015
Location: UK
Posts: 55
jc491 is on a distinguished road
Default

Hello Paul,


Seasons greetings this day!

I have added that line - as per instructions - here are the results

http://tinypic.com/r/2qvw4zl/9

It is adding it around the paragraph for the first style of words.

For the second heading style - its adding all the placeholders - including the ones for the first style




Have a great day!

J
Reply With Quote
  #17  
Old 12-25-2015, 03:32 PM
macropod's Avatar
macropod macropod is offline VBA Word  - Find & Apply Styles to Specific Words - Using Case Statement Windows 7 64bit VBA Word  - Find & Apply Styles to Specific Words - Using Case Statement Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

You may need to run two versions of the macro: one for paragraph Styles with the added .Text expression; and one for character Styles without it
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #18  
Old 12-26-2015, 12:25 PM
jc491's Avatar
jc491 jc491 is offline VBA Word  - Find & Apply Styles to Specific Words - Using Case Statement Windows 10 VBA Word  - Find & Apply Styles to Specific Words - Using Case Statement Office 2016
VBA Novice
VBA Word  - Find & Apply Styles to Specific Words - Using Case Statement
 
Join Date: Sep 2015
Location: UK
Posts: 55
jc491 is on a distinguished road
Default

Hi Paul,

thanks for all the help.

It works perfectly for all the headings. I promise this time round I had the styles.

I still have the other 2 that you kindly helped with.


Some times I swear its word and then you have me - 2 clumsy together can only be a recipe for disaster.


Saying that I am getting better with my coding skills.

Just need time and patience!

This is great for now.

Thanks for all the awesome help!



J

Happy New Year!


Please Mark as Solved
Reply With Quote
Reply

Tags
apply style, case

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apply styles in word table 1van Word VBA 2 11-17-2015 11:05 AM
VBA Word  - Find & Apply Styles to Specific Words - Using Case Statement VBA Word - Format ALL Tables - Apply Specific Formatting to Sets of Columns – Font, Border & Width jc491 Word VBA 10 11-04-2015 04:02 PM
Question about Case statement Jennifer Murphy Word VBA 1 01-05-2013 02:30 PM
Paragraph space before - can styles apply it intelligently? timpani Word 7 10-23-2012 04:08 PM
FInd recurring words in Word 2003 NJ007 Word 4 01-25-2010 03:11 PM

Other Forums: Access Forums

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