From: Graham Mayor on 16 Feb 2010 01:43 I'll tell you when I have had chance to play with it ;) More likely I will use the simpler get out that we discussed earlier :) -- <>>< ><<> ><<> <>>< ><<> <>>< <>><<> Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org <>>< ><<> ><<> <>>< ><<> <>>< <>><<> "Doug Robbins - Word MVP" <dkr(a)REMOVECAPSmvps.org> wrote in message news:OnUa3FtrKHA.4652(a)TK2MSFTNGP02.phx.gbl... > Hi Graham, > > But doesn't it mean that the message would need to be created as HTML > "text" - that is tags and all? > > -- > Hope this helps, > > Doug Robbins - Word MVP > > Please reply only to the newsgroups unless you wish to obtain my services > on > a paid professional basis. > > "Graham Mayor" <gmayor(a)REMOVETHISmvps.org> wrote in message > news:upwfI8srKHA.4652(a)TK2MSFTNGP02.phx.gbl... >> Hmmm That looks interesting ... thanks :) >> >> -- >> <>>< ><<> ><<> <>>< ><<> <>>< <>><<> >> Graham Mayor - Word MVP >> >> My web site www.gmayor.com >> Word MVP web site http://word.mvps.org >> <>>< ><<> ><<> <>>< ><<> <>>< <>><<> >> >> >> "Ken Slovak - [MVP - Outlook]" <kenslovak(a)mvps.org> wrote in message >> news:OC1MXnlrKHA.5356(a)TK2MSFTNGP02.phx.gbl... >>> If the Outlook editor is being used and the format is HTML you can use >>> IHTMLDocument and HTML code to paste text, etc. Something like this: >>> >>> If ((Not (oItem.GetInspector.IsWordMail )) And (Left(oItem.Application, >>> 2) = "11")) Then >>> ' tested and is OL editor and is OL 11 >>> If oItem.GetInspector.EditorType = olEditorHTML Then >>> Dim oHTML As MSHTML.IHTMLDocument2 >>> Set oHTML = oItem.GetInspector.HTMLEditor >>> ' now use HTML code >>> >>> -- >>> Ken Slovak >>> [MVP - Outlook] >>> http://www.slovaktech.com >>> Author: Professional Programming Outlook 2007. >>> Reminder Manager, Extended Reminders, Attachment Options. >>> http://www.slovaktech.com/products.htm >>> >>> >>> "Graham Mayor" <gmayor(a)REMOVETHISmvps.org> wrote in message >>> news:uBWHudlrKHA.732(a)TK2MSFTNGP06.phx.gbl... >>>> The code is run from Word. The part that doesn't work is the Copy and >>>> Paste part, so the selected text never makes it to the message. I just >>>> get an empty message with the subject and address filled. >>>> >>>> It is undoubtedly attributable to having Outlook using its own e-mail >>>> editor, but as I indicated earlier, it doesn't seem possible to switch >>>> editors in vba (unless you know a way). >>>> >>>> So >>>> 1. I either need a method that works with both editors >>>> or >>>> 2. I need two methods - one for each editor, >>>> or >>>> 3. I need to be able to switch editors >>>> or >>>> 4. I need to disable the function when the wrong editor is pre-selected >>>> >>>> For 2 & 4 I was planning to interrogate the registry to see which >>>> editor was in use and set up the code construction accordingly ... but >>>> I can't find a way to paste the text into the Outlook editor :(. >>>> >>>> -- >>>> <>>< ><<> ><<> <>>< ><<> <>>< <>><<> >>>> Graham Mayor - Word MVP >>>> >>>> My web site www.gmayor.com >>>> Word MVP web site http://word.mvps.org >>>> <>>< ><<> ><<> <>>< ><<> <>>< <>><<> >>> >> >> >
From: Ken Slovak - [MVP - Outlook] on 16 Feb 2010 09:00 Yes, but you end up doing that anyway in a lot of cases when you start parsing or fooling around with HTMLBody. When I do something like inserting text or URL links or whatever I always end up doing that anyway. And if you're using the IHTMLDocument object models that does help some. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "Doug Robbins - Word MVP" <dkr(a)REMOVECAPSmvps.org> wrote in message news:OnUa3FtrKHA.4652(a)TK2MSFTNGP02.phx.gbl... > Hi Graham, > > But doesn't it mean that the message would need to be created as HTML > "text" - that is tags and all? > > -- > Hope this helps, > > Doug Robbins - Word MVP > > Please reply only to the newsgroups unless you wish to obtain my services > on > a paid professional basis.
From: Graham Mayor on 16 Feb 2010 09:57
Annoyingly and inexplicably, the original process (that I posted earlier in the thread) worked on my Office 2003 equipped laptop today - regardless of whether I was using Word or Outlook's own editor. The only difference is that the laptop had hibernated overnight. Nothing else had changed :( In the circumstances I will wait to see if there is any user feedback before decideing what to do (if anything) next - http://www.gmayor.com/ManyToOne.htm -- <>>< ><<> ><<> <>>< ><<> <>>< <>><<> Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org <>>< ><<> ><<> <>>< ><<> <>>< <>><<> "Ken Slovak - [MVP - Outlook]" <kenslovak(a)mvps.org> wrote in message news:e14P1BxrKHA.5356(a)TK2MSFTNGP02.phx.gbl... > Yes, but you end up doing that anyway in a lot of cases when you start > parsing or fooling around with HTMLBody. When I do something like > inserting text or URL links or whatever I always end up doing that anyway. > And if you're using the IHTMLDocument object models that does help some. > > -- > Ken Slovak > [MVP - Outlook] > http://www.slovaktech.com > Author: Professional Programming Outlook 2007. > Reminder Manager, Extended Reminders, Attachment Options. > http://www.slovaktech.com/products.htm > > > "Doug Robbins - Word MVP" <dkr(a)REMOVECAPSmvps.org> wrote in message > news:OnUa3FtrKHA.4652(a)TK2MSFTNGP02.phx.gbl... >> Hi Graham, >> >> But doesn't it mean that the message would need to be created as HTML >> "text" - that is tags and all? >> >> -- >> Hope this helps, >> >> Doug Robbins - Word MVP >> >> Please reply only to the newsgroups unless you wish to obtain my services >> on >> a paid professional basis. > |