跳到主要內容

發表文章

目前顯示的是有「批次加粗上色特定文字」標籤的文章

效率提升術: PowerPoint 使用 VBA 快速 Highlight 特定文字

如何使用 VBA 快速將 PowerPoint 中特定文字進行 Highlight 你是否曾經需要快調整 PowerPoint 簡報中的文字?我們製作報告時常碰到要調整字體顏色加粗進行 Highlight,手動調整每張投影片可能非常耗時,尤其是當你的簡報很大一份的時候。 在本篇文章中,會告訴你如何使用 VBA 程式碼快速調整 PowerPoint 簡報中的文字。我將提供可以調整字體顏色、加粗文字並格式化特定標記內的文字的程式碼。 Sub FormatShapesOnAllSlides()     Dim sld As Slide     Dim shp As Shape     Dim lastSlide As Long     Dim userResponse As Integer            ' Activate the first slide in the presentation     ActiveWindow.View.GotoSlide 1          ' Get the index of the last slide in the presentation     lastSlide = ActivePresentation.Slides.Count          ' Loop through all slides in the presentation     For Each sld In ActivePresentation.Slides         ' Select all shapes on the slide         For Each shp In sld.Shapes             shp.Select (False)       ...