T
Tammy
I've posted this one on the Excel programming group site but have had
no response so thought I'd try my luck here. I've created a dll from
within Excel which all works well. I now have to reference it in a
workbook but can't get it to work.
I've spent hours searching in groups and know that I can't use the
"new" keyword in my workbook. Following the instructions I've found
I've created a function in my dll which will create the new instance
of the class I want and then have code in the workbook calling that
function. The class is set to PublicNotCreatable.
In the dll the function in the standard module is as below:
Public Function GetProcedures () as cProcedures
Set GetProcedures = New cProcedures
End Function
In the workbook I have set a reference to the dll and have the
following code:
Dim cAlemy As AlemyExcelAddin.cProcedures
Set cAlemy = AlemyExcelAddin.GetProcedures()
The problem is that the workbook doesn't see the GetProcedures
function. All the procedures in the cProcedures class show up but
not the procedures in the standard module.
Any suggestions greatly appreciated as I have no idea what I'm doing
wrong and really don't want to have to recreate all the forms in VB6.
Thanks
Tammy
no response so thought I'd try my luck here. I've created a dll from
within Excel which all works well. I now have to reference it in a
workbook but can't get it to work.
I've spent hours searching in groups and know that I can't use the
"new" keyword in my workbook. Following the instructions I've found
I've created a function in my dll which will create the new instance
of the class I want and then have code in the workbook calling that
function. The class is set to PublicNotCreatable.
In the dll the function in the standard module is as below:
Public Function GetProcedures () as cProcedures
Set GetProcedures = New cProcedures
End Function
In the workbook I have set a reference to the dll and have the
following code:
Dim cAlemy As AlemyExcelAddin.cProcedures
Set cAlemy = AlemyExcelAddin.GetProcedures()
The problem is that the workbook doesn't see the GetProcedures
function. All the procedures in the cProcedures class show up but
not the procedures in the standard module.
Any suggestions greatly appreciated as I have no idea what I'm doing
wrong and really don't want to have to recreate all the forms in VB6.
Thanks
Tammy