Link to home
Start Free TrialLog in
Avatar of DPPro
DPPro

asked on

Microsoft says it's proprietary!? Won't Answer

I'm trying to develope my own routine in which when I create a sub or function End Sub Or End Function along with error handling code is automatically inserted. All has gone according to plan except I cannot get the End portion to know if I have created a Function or Sub Or What. Can You Help?
Avatar of sujmags
sujmags

I am not clear with ur question, pl. explain in detail
So, your add-in has a "Add Function" feature that allows you to enter the function name, just like the VBx IDE, and instead of putting the header and footer, you also put in the error handling code?

Doesn't your add-in know if you're doing a sub or function?
At the top of the function/sub you must be inserting either sub or function.  Can't you use the same process at the bottom of the function.  Have you code for this you can post?
ASKER CERTIFIED SOLUTION
Avatar of Foyal
Foyal

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial