I am trying to print something to a text file while slide show is active in Power Point.
When i run my sub from the vba window, the text file is created and i can print whatever i want, but when i click to the linked shape to run the macro in slide show mode nothing is written to the file. It's like the code doesn't work in slide show mode. How can i fix this? My code is the following.
Sub print2file()
Set currentSlide = Application.ActiveWindow.View.Slide
slideIndex = currentSlide.slideIndex
Open "results.txt" For Append As #1
Print #1, "some_text"
Print #1, "Slide Index: "; slideIndex;
Close #1
End Sub