in the help you have some programm talking about gain and directivity in VBA. in the help write "userdefined watch" and "Visual basic (VBA) langage".
I'm studying VBA right now and I try to do something else, I have a macro which exist already. I can make this macro local or global. I want to run this macro after each calaculation of a parameter in a parameter sweep simulation. I know I have to write something in the case 1. I tried to write open "namemacro.mcr" but it didn't work. I f someone has a help, I will be grateful:
-------------------------------------------------------------------------
' userdefined watch for parameter sweep
Option Explicit
Sub ParameterSweepWatch(action As Integer)
'Please define actions for the parameter sweep watch here.
Select Case action
Case 0
'Please define actions before the parametersweep starts.
Case 1
'Please define actions after each calculation.
Case 2
'Please define actions after the parametersweep has finished.
End Select
End Sub
Sub Main()
ParameterSweepWatch 0
ParameterSweepWatch 1
ParameterSweepWatch 2
End Sub
-----------------------------------------------------------------------