Hi,
Newbie to forum so be gentle. I have written some code to paste a string into a textbox on a particular slide:
Sub ShowAnswers()
Dim AnsList As String
AnsList = "The answers are as follows:" & vbCrLf
For X = 0 To NOOFQS - 1
AnsList = AnsList & Qs(X) & "
Correct Answer:" & Choices(X, Ans(X + 1)) & vbCrLf
Next X
SlideShowWindows(1).Presentation.Slides("Answer list"
.Shapes("Text Box 2"
.TextFrame.TextRange.Text = AnsList
End Sub
When I am in Slideshow mode and run this macro nothing happens, when I am in debugging mode and F8 my way through the macro with the slideshow running it works. I'm sure I'm missing something fundamental here, any ideas why it will only work in the debugger
Newbie to forum so be gentle. I have written some code to paste a string into a textbox on a particular slide:
Sub ShowAnswers()
Dim AnsList As String
AnsList = "The answers are as follows:" & vbCrLf
For X = 0 To NOOFQS - 1
AnsList = AnsList & Qs(X) & "
Next X
SlideShowWindows(1).Presentation.Slides("Answer list"
End Sub
When I am in Slideshow mode and run this macro nothing happens, when I am in debugging mode and F8 my way through the macro with the slideshow running it works. I'm sure I'm missing something fundamental here, any ideas why it will only work in the debugger