Hi
I have the code as mentioned below and in the picture was workingfine in previous macro. but when i tried to copy the same and useit in differnent macro it throws the error.
compile error: invalid use of new keyword and points to the belowline.
objXL As New Excel.Application
Can any one guide me how to rectify it.
i had properly added the reference too.
SolidworksApi macros
I have the code as mentioned below and in the picture was workingfine in previous macro. but when i tried to copy the same and useit in differnent macro it throws the error.
compile error: invalid use of new keyword and points to the belowline.
objXL As New Excel.Application
Can any one guide me how to rectify it.
i had properly added the reference too.
SolidworksApi macros