Roofio
10-15-2008, 05:17 PM
Hey
I get an error with the code and line 1 is highlighted in yellow, can someone pls help me fix it and if possible to explain the error? thanks
Private Sub CommandButton1_Click()
Dim Doc As Document
Dim bmCurrent As Bookmark
Dim intPosition As Integer
Dim lngLast As Long
'Initialize globals
intPosition = 1
Set Doc = ActiveDocument
lngLast = Doc.Bookmarks.Count
' Hide and disable update buttons
btnCancelUpdate.Visible = False
btnConfirmUpdate.Visible = False
btnCancelUpdate.Enabled = False
btnConfirmUpdate.Enabled = False
' Common display form rtn
UpdateForm
End Sub
Thank you
I get an error with the code and line 1 is highlighted in yellow, can someone pls help me fix it and if possible to explain the error? thanks
Private Sub CommandButton1_Click()
Dim Doc As Document
Dim bmCurrent As Bookmark
Dim intPosition As Integer
Dim lngLast As Long
'Initialize globals
intPosition = 1
Set Doc = ActiveDocument
lngLast = Doc.Bookmarks.Count
' Hide and disable update buttons
btnCancelUpdate.Visible = False
btnConfirmUpdate.Visible = False
btnCancelUpdate.Enabled = False
btnConfirmUpdate.Enabled = False
' Common display form rtn
UpdateForm
End Sub
Thank you