Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / January 2005

Tip: Looking for answers? Try searching our database.

word macro help

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kirk - 14 Jan 2005 17:32 GMT
I am trying to write a macro that will add a drop cap to every
paragraph in a document where a certain text string is found. Is there
a way this can be accomplished? I am having problems since the drop cap
macro created keys on paragraph while the search macro keys on the
selected find.

Thanks for any help you can give.
Jezebel - 14 Jan 2005 21:46 GMT
   Dim pPar As Word.Paragraph

   For Each pPar In ActiveDocument.Paragraphs
       With pPar
           If InStr(.Range, "text to look for") > 0 Then
               .DropCap.Position = wdDropNormal
           End If
       End With
   Next

> I am trying to write a macro that will add a drop cap to every
> paragraph in a document where a certain text string is found. Is there
[quoted text clipped - 3 lines]
>
> Thanks for any help you can give.
Kirk - 14 Jan 2005 22:39 GMT
Thanks a bunch, this is exactly what I was looking for.

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.