2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

パワポマクロ ActiveSlide関数を作成

Posted at

パワポにはアクティブなスライドを取得するプロパティがない。

ExcelでいうActiveSheet、ActiveWorkbookみたいなのがあると楽なのですが、パワポにはありません。
ActivePresentationというプロパティはあるので、そこから自作関数を作成。

Public Function ActiveSlide() As Slide
  Dim silideAt As Slide
   
  Set ActiveSlide = ActivePresentation.Slides.FindBySlideID(ActivePresentation.Windows(1).Selection.SlideRange.SlideID)
End Function

いまのところ問題なく利用できている。

2
3
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?