I'm trying to use this control, which seems to be quite good, on a VBA project running under Excel.
Just to see if it works as I need, I've written the following lines of code, were CACRQ is an Avax control.
Private Sub UserForm_Initialize()
Dim ewsh As Excel.Worksheet
Dim acdapp As New Application
Dim x1() As Single, y1() As Single, z1() As Single
Dim avxH As Long
Set ewsh = ThisWorkbook.Sheets("Diseño Inserto")
CACRQ.StartAvax
ReDim x1(4), y1(4), z1(4)
x1(1) = -0.5 * ewsh.Cells(92, 2): y1(1) = -0.5 * ewsh.Cells(91, 2): z1(1) = 0#
x1(2) = 0.5 * ewsh.Cells(92, 2): y1(2) = -0.5 * ewsh.Cells(91, 2): z1(2) = 0#
x1(3) = 0.5 * ewsh.Cells(92, 2): y1(3) = 0.5 * ewsh.Cells(91, 2): z1(3) = 0#
x1(4) = -0.5 * ewsh.Cells(92, 2): y1(4) = 0.5 * ewsh.Cells(91, 2): z1(4) = 0#
avxH = CACRQ.Add_PolyLine(x1, y1, z1, , 5, 1, , 1)
CACRQ.Refresh
End Sub
When the form is closed, the following code is executed
Private Sub UserForm_Terminate()
CACRQ.EndAvax
End Sub
The code runs, but the screen shows nothing but a sign saying that this is an unregistered version. Is it normal? Am I doing something wrong? Maybe the control does not run properly on VBA
Thanks
Alejandro Carosio
Sign In
Register
Help
Add Reply

MultiQuote