Private Sub CommandButton1_Click() ' read from channel number 00001 in software signal generator device, and store data in myResults$ x% = IMLcontrol1.ReadFromChannel("00001", myResult$) Excel.ActiveCell = myResult$ End Sub Private Sub UserForm_Initialize() x% = IMLcontrol1.IMLOpen ' insert the name of your IMS file here, which you created with SetupIML x% = IMLcontrol1.IMSLoadFile("c:\wm5\test.ims", IMSname$) ' check for errors If Not (x%) Then a$ = IMLcontrol1.IML_Error_Msg MsgBox "Error in IMSLoadFile: " + a$ End If End Sub Private Sub UserForm_Terminate() x% = IMLcontrol1.IMLclose End Sub