LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default formattig word paragraphs from excel

I would like to apply two different word styles to the text inserted from cells(rowno, 3) and cells(rowno, 1). The names of the styles in the template used to populate the information are ProjectStyle, DetailsStyle.

How can I apply word style after inserting new information. I cannot find the syntax which will work.

For rowno = i - 1 To 2 Step -1
With ActiveDocument
.Bookmarks("OperationsStart").Range.InsertAfter Chr(13)
.Bookmarks("OperationsStart").Range.InsertAfter Chr(13)
.Bookmarks("OperationsStart").Range.InsertAfter Cells(rowno, 3)
.Bookmarks("OperationsStart").Range.InsertAfter Chr(13)
.Bookmarks("OperationsStart").Range.InsertAfter Cells(rowno, 1)
End With
Next rowno

Thanks for help.

Regards,

Tony
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Manage Word paragraphs inside Excel Alex St-Pierre Excel Programming 6 November 22nd 06 08:02 PM
Moving paragraphs from MS Word to Excel [email protected] Excel Discussion (Misc queries) 3 March 2nd 05 02:36 AM
How to select the first 5 paragraphs in a Word Document from Excel quartz[_2_] Excel Programming 1 January 12th 05 03:52 PM
Display Word Paragraphs in Excel??? quartz[_2_] Excel Programming 2 January 10th 05 07:39 PM
Find paragraphs in word and export to Excel Matt Shaw Excel Programming 1 July 19th 03 09:22 AM


All times are GMT +1. The time now is 08:08 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"