Ok let me start again.
the doc is called test1
here is the below text that forms the script.
Ive tried putting I have written an wee VB application in the open script which when runs opens debugger with yellow highlights over the words 'Private Sub Document_Open()'
sorry about this
Private Sub CommandButton1_Click()
form1.Caption = TextBox1.Text
End Sub
Private Sub Calculate_Click()
output1.Text = ""
output2.Text = ""
output3.Text = ""
output1 = input2.Text
limoutput = input1.Text
output2.Text = Left(input3.Text, 1) * 14
If Right(input3, 1) = 1 Then output3.Text = Val(output3.Text) + 8
If Right(input3, 1) = 3 Then
output3.Text = Val(output3.Text) + 88
output2.Text = Val(output2.Text) + 1
End If
If Right(input3, 1) = 2 Then output2.Text = Val(output2.Text) + 1
output3.Text = Val(output3.Text) + Val(input4.Text)
output3.Text = Hex(output3.Text)
output2.Text = Hex(output2.Text)
End Sub
Private Sub inout3_Change()
End Sub
Private Sub EQU_Click()
End Sub
Private Sub Frame1_Click()
End Sub
Private Sub input1_Change()
End Sub
Private Sub input3_Change()
End Sub
Private Sub Label1_Click()
End Sub
Private Sub Label2_Click()
End Sub
Private Sub Label6_Click()
End Sub
Private Sub TextBox1_Change()
End Sub
Private Sub TextBox2_Change()
End Sub
Private Sub Label3_Click()
End Sub
Private Sub Label4_Click()
End Sub
Private Sub Limandbyte_Click()
End Sub
Private Sub limoutput_Change()
End Sub
Private Sub output3_Change()
End Sub
Private Sub UserForm_Click()
End Sub