There are 2 problems:
dim myForm1 as frmChart
This just declares that myForm1
will be of the Type frmChart
if/when one is created (instanced). To create an actual instance of frmChart
:
dim myForm1 as New frmChart
Since myFormN
is now an instance of frmChart
, you can call those procedures directly on/thru the instance variable:
myForm1.SaveChart