I receive the following error when I try to load a VB application into AutoCAD 2005. RobDog888 posted an answer (315175), I think my problem is I don't understand where the As Object declaration goes, as shown below give me an error.


Private Sub btnPlotNow_Click() As Object

FilePath = Module1.GetScriptFileLocation
If SaveScripts Then
Open FilePath & "\Batchplt.scr" For Output As 1
For dwg = 0 To dlgBatchPlot.dlgDrawingFileList.ListCount - 1
WriteScript2005 (1)
Next dwg
Close 1
End If
dlgBatchPlot.Hide
End Sub