Solved

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

Posted on 1999-01-29
4
101 Views
Last Modified: 2010-05-03
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?
0
Comment
Question by:DPPro
4 Comments
 

Expert Comment

by:sujmags
ID: 1471244
I am not clear with ur question, pl. explain in detail
0
 
LVL 2

Expert Comment

by:VBDesigns
ID: 1471245
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?
0
 
LVL 18

Expert Comment

by:deighton
ID: 1471246
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?
0
 
LVL 3

Accepted Solution

by:
Foyal earned 300 total points
ID: 1471247
Give me your e-mail address and I'll send program code for adding error traps to .frm files. You can probably figure out the rest.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question