samuelwright
12-05-2005, 04:30 AM
Hi all
I have read a few of the threads regarding setting/unsetting the Word Editor as the Outlook message editor (e.g. http://vbaexpress.com/forum/showthread.php?t=5042). I am having a similar sort of problem, that is slightly different, but related...
I have a macro form that is loaded from a toolbar button on a new message. This form helps to write the subject line in the correct format I want. However, whenever Word is selected as the default editor, it doesnt show the button, PLUS it puts in all the macros I have running on Word, which I dont want to happen with Outlook. It is frustrating.
I would like to know if this can be disabled, ie when a new message is opened, I want my toolbar button (with associated macro) to be available, regardless of whether Word is selected as my default editor or not. Also I dont want my Word macros to appear. Is it possible for a procedure to be written that interrogates the application that is running, something along the lines of:
If <Active window is an Outlook New Mail message> then Call <Outlook Sub>
elseif <Active window is Word document> then call <Word sub>
(I dont know the specific syntax, sorry:dunno ).
Sam
I have read a few of the threads regarding setting/unsetting the Word Editor as the Outlook message editor (e.g. http://vbaexpress.com/forum/showthread.php?t=5042). I am having a similar sort of problem, that is slightly different, but related...
I have a macro form that is loaded from a toolbar button on a new message. This form helps to write the subject line in the correct format I want. However, whenever Word is selected as the default editor, it doesnt show the button, PLUS it puts in all the macros I have running on Word, which I dont want to happen with Outlook. It is frustrating.
I would like to know if this can be disabled, ie when a new message is opened, I want my toolbar button (with associated macro) to be available, regardless of whether Word is selected as my default editor or not. Also I dont want my Word macros to appear. Is it possible for a procedure to be written that interrogates the application that is running, something along the lines of:
If <Active window is an Outlook New Mail message> then Call <Outlook Sub>
elseif <Active window is Word document> then call <Word sub>
(I dont know the specific syntax, sorry:dunno ).
Sam