StephenNapper
Technical User
Dear Forum,
I have written the following code to run an external program so that Excel can query it's database. As a 'Developer' I am to set the Password, PassKey and apply a Permit. The words make some form of sense and I feel frustratingly close but need a little help to get over the line.
Sub StartBreve()
Dim Program As String
Dim TaskID As Double
On Error Resume Next
Program = "C:\Program Files (x86)\Tekla\BREVe\32\BREVe32.exe. "
setPassword = "888888"
PassKey = "********"
TaskID = Shell(Program, 1)
If Err <> 0 Then
MsgBox "Cannot Start " & Programs, vbCritical, "Error"
End If
End Sub
I have replaced the Password and Passkey for the sake of the post, BUT as you can guess the real ones aren't working.
The guidance I have from my vendor is:
PASSWORD, PASSKEY AND PERMIT
Developers will be provided with three keys which enable the application to run on any PC without the need to register BREVe for general use. The Developer is responsible for providing any necessary access restrictions in the application itself. The three keys are all 32-bit signed integers, but may be entered as the equivalent hexadecimal values (usually by prefixing the hexadecimal code with the symbol $).
• The PassWord and Permit values are used in a call to setPassWord (which returns TRUE if successful and also sets the Developer property to TRUE). The PassWord is unique to the Developer. The Permit value exists to prevent non-developers from setting the PassWord.
• The PassKey value is set as a property (e.g. by B32X1.PassKey:=$A1B2C3D4 in hexadecimal form).
• Having set these values, call the Authorize method.
But frankly it's not helping. I'm hoping that you can.....
I have written the following code to run an external program so that Excel can query it's database. As a 'Developer' I am to set the Password, PassKey and apply a Permit. The words make some form of sense and I feel frustratingly close but need a little help to get over the line.
Sub StartBreve()
Dim Program As String
Dim TaskID As Double
On Error Resume Next
Program = "C:\Program Files (x86)\Tekla\BREVe\32\BREVe32.exe. "
setPassword = "888888"
PassKey = "********"
TaskID = Shell(Program, 1)
If Err <> 0 Then
MsgBox "Cannot Start " & Programs, vbCritical, "Error"
End If
End Sub
I have replaced the Password and Passkey for the sake of the post, BUT as you can guess the real ones aren't working.
The guidance I have from my vendor is:
PASSWORD, PASSKEY AND PERMIT
Developers will be provided with three keys which enable the application to run on any PC without the need to register BREVe for general use. The Developer is responsible for providing any necessary access restrictions in the application itself. The three keys are all 32-bit signed integers, but may be entered as the equivalent hexadecimal values (usually by prefixing the hexadecimal code with the symbol $).
• The PassWord and Permit values are used in a call to setPassWord (which returns TRUE if successful and also sets the Developer property to TRUE). The PassWord is unique to the Developer. The Permit value exists to prevent non-developers from setting the PassWord.
• The PassKey value is set as a property (e.g. by B32X1.PassKey:=$A1B2C3D4 in hexadecimal form).
• Having set these values, call the Authorize method.
But frankly it's not helping. I'm hoping that you can.....