VB Help!!!

Can anyone tell me what is wrong with this VB code?

Private Sub RSWVBAPage_afterPlay()

Dim MyDoc As Object
Dim ICount As Integer
testerWin = “0”
Set MyDoc = RSWApp.om.GetTopDocument(testerWin)
ICount = MyDoc.images.Length
MsgBox = ICount
End Sub

Hi Billy,

Couple of things.

  1. If you have “Option Explicit” turned on, the following will fail:

testerWin = “0”

because this variable has not yet been declared.

  1. This line is wrong:

MsgBox = ICount

It should be just

MsgBox ICount