![]() |
|
![]() |
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
![]()
Hello Word People,
First Post!. Some kind soul over at the Powershell.com site suggested that I use this code :- $word = New-Object -ComObject "Word.Application" $word.Visible = $true $document = $word.Documents.Add() foreach ($name in $word.FontNames ) { $p = $document.Paragraphs.Add(); $p.Range.Text = $name $p.Range.Font.Name = $name $p.Range.InsertParagraphAfter(); } I have no idea how to use this code, could someone help me please. Thanks electrocad |
#2
|
||||
|
||||
![]()
See http://word.mvps.org/FAQs/Formatting...eGenerator.htm and if you don't know how to use that listing, see http://www.gmayor.com/installing_macro.htm
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
zany | Word | 3 | 07-03-2015 05:32 AM |
Save Every 2 pages of Word Document as the First Line of Text | Faugs | Word VBA | 6 | 08-13-2014 11:50 PM |
Print copies of onepage document with different text | kciejek | Word VBA | 4 | 06-03-2014 03:21 AM |
![]() |
terik222 | Word | 3 | 03-27-2013 02:43 PM |
Changing Fonts Within a Document | Elementninja111 | Word | 1 | 06-21-2012 06:09 PM |