如何使用 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) ...
這是一個提供科技新知的部落格,你可以在這裡找到各種有趣的科技話題和小技巧,讓你了解最新科技趨勢。趕快來關注我們,探索科技世界的奧秘吧!