Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 01-16-2016, 01:38 PM
macropod's Avatar
macropod macropod is offline How to give multiple styles while inserting string Windows 7 64bit How to give multiple styles while inserting string Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,518
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

Quote:
Originally Posted by PRA007 View Post
Ok. I tried but I think The problem is with paragraphs.

Recorded macro and found that
Code:
.Style = ActiveDocument.Styles("Heading 2")
is the key to success.
What is the problem with paragraphs?

Your code could be reduced to:
Code:
.Style = "Heading 2"
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 

Tags
vba



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to do multiple find and replace in string. PRA007 Word VBA 2 01-06-2016 09:10 PM
Multiple Hyperlink to a single string PRA007 Word VBA 7 11-09-2015 04:29 PM
How to give multiple styles while inserting string Find Multiple Wildcard string and Highlight PRA007 Word VBA 2 10-17-2015 01:07 AM
How do I string together multiple copies of the same template in Office 2011 for Mac? terrymarks Word 1 06-14-2015 10:21 PM
inserting a string of data into an MS Word table??? matto Word VBA 0 07-16-2010 09:35 AM

Other Forums: Access Forums

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