5 pts.
 Are user subs and functions in the microsoft office object model hierarchy?
I'm an experienced Excel VBA programmer, who is trying to write a macro in Excel that uses functions and subs in Outlook.  I've done some searching and found that the standard answer looks something like: <code>     objApp = CreateObject("Outlook.Application")     call objApp.UserSubName(argument1, argument2) </code> where UserSubName is the name of the sub in Outlook.  I've seen several minor variations on this, and in the comments after each one, there is usually at least one poster who writes "This didn't work for me."  I'm trying to understand the problem better, so while I'll happily take an answer to why this isn't working, the real question I'm asking is: Is a user-written sub or function placed in the object model hierarchy?  In other words, can I "drill down" to the sub or function with "Application.something.somethingelse.UserSubName"?  Any feedback on this would be appreciated!

Software/Hardware used:
Microsoft Office 2007
ASKED: June 19, 2012  7:50 PM

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _