글꼴 목록 인쇄 (Microsoft Word)
이전 버전의 Word (Windows 용 Word 2와 같이 훨씬 이전 버전)에는 시스템에서 글꼴 목록을 빠르게 인쇄 할 수있는 기능이있었습니다. 불행히도 더 이상 그렇지 않습니다. 그러나 이러한 목록을 함께 넣을 수있는 매크로를 쉽게 만들 수 있습니다.
Sub ListFontNames() Dim J As Integer Dim NewDoc As Document ' Create a new document Set NewDoc = Documents.Add ' Add font names to document For J = 1 To FontNames.Count Selection.TypeText (FontNames(J)) Selection.TypeParagraph Next J End Sub
매크로는 새 문서를 만든 다음 FontNames 컬렉션을 단계별로 실행하고 각 이름을 문서에 추가합니다. 매크로가 작동하는 속도는 시스템에 설치된 글꼴 수에 따라 다릅니다.
좀 더 정교한 것을 원한다면 다음 매크로를 사용할 수 있습니다. 문서를 생성 한 다음 모든 글꼴 이름을 표에 넣습니다. 표의 두 번째 열에는 서식이 지정된 글꼴 샘플이 제공됩니다.
Sub FontExamples() Dim J As Integer Dim F As Integer Dim sTemp As String Dim sTest As String Dim Continue As Integer Dim rng As Range Dim FontTable As Table Dim NewDoc As Document ' Specify the sample text for second column sTest = "ABCDEFG abcdefg 1234567890" ' Check to see if the user wants to proceed F = FontNames.Count sTemp = "There are " & F & " fonts on this system." sTemp = sTemp & "Building the document may take quite a while." sTemp = sTemp & "Do you want to continue?" Continue = MsgBox(sTemp, vbYesNo, "Build Font List") If Continue = vbYes Then ' Put together a string that contains the table contents sTemp = "Font Name" & vbTab & "Font Example" For J = 1 To F sTemp = sTemp & vbCr & FontNames(J) & vbTab & sTest Next J ' Create a new document Set NewDoc = Documents.Add ' Add string contents and convert to table Set rng = Selection.Range rng.Text = sTemp Set FontTable = rng.ConvertToTable(Separator:=vbTab, _ AutoFitBehavior:=wdAutoFitFixed) ' Set general table properties With FontTable .Borders.Enable = False .Range.Font.Name = "Arial" .Range.Font.Size = 10 .Rows(1).Range.Font.Bold = True .Rows(1).Range.Font.Size = 12 End With ' Go through the sample cells and format them For J = 1 To F FontTable.Cell(J + 1, 2).Range.Font.Name = FontNames(J) Next J ' Sort the table FontTable.Sort SortOrder:=wdSortOrderAscending End If End Sub
이 매크로는 이전 매크로보다 훨씬 많은 기능을 수행합니다. 표 자체는 다소 빠르게 생성되지만 각 샘플 셀을 단계별로 살펴보고 적절한 글꼴을 사용하여 서식을 지정하는 데 많은 시간이 걸릴 수 있습니다. 이것이 매크로가 계속하기 전에 시스템에있는 글꼴 수를 알려주는 이유입니다.
사용하기로 선택한 매크로에 관계없이 시스템에 대한 전체 글꼴 목록이 표시됩니다. 그런 다음 인쇄하여 Word로 작업 할 때 편리하게 보관할 수 있습니다.
_ 참고 : _
이 페이지 (또는 WordTips 사이트의 다른 페이지)에 설명 된 매크로를 사용하는 방법을 알고 싶다면 유용한 정보가 포함 된 특별 페이지를 준비했습니다.
link : / wordribbon-WordTipsMacros [새 브라우저 탭에서 특별 페이지를 열려면 여기를 클릭하세요]
.
_WordTips_는 비용 효율적인 Microsoft Word 교육을위한 소스입니다.
(Microsoft Word는 세계에서 가장 인기있는 워드 프로세싱 소프트웨어입니다.)이 팁 (4358)은 Microsoft Word 2007, 2010, 2013 및 2016에 적용됩니다. 여기에서 Word의 이전 메뉴 인터페이스에 대한이 팁 버전을 찾을 수 있습니다. link : / word-Printing_a_Font_List [글꼴 목록 인쇄]
.