From: Paul Moloney on 3 Feb 2010 09:58 I have an Autoopen macro in a template as follows: Application.ActiveDocument.AttachedTemplate.Saved = True The purpose of this is to avoid people opening the doc being prompted to save the template. This works fine, except if the user attempts to open the doc through a link from a web page rather than from Windows Explorer. If this happens, the following error is given: Run-time error: '13' Type mismatch Does anyone know why? Thanks, P.
From: Fumei2 via OfficeKB.com on 3 Feb 2010 14:18 What happens if you do not have Application? ActiveDocument.AttachedTemplate.Saved = True Paul Moloney wrote: >I have an Autoopen macro in a template as follows: > >Application.ActiveDocument.AttachedTemplate.Saved = True > >The purpose of this is to avoid people opening the doc being prompted >to save the template. > >This works fine, except if the user attempts to open the doc through a >link from a web page rather than from Windows Explorer. If this >happens, the following error is given: > >Run-time error: '13' > >Type mismatch > >Does anyone know why? > >Thanks, > >P. -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.aspx/word-programming/201002/1
From: Paul Moloney on 4 Feb 2010 05:31 On Feb 3, 7:18 pm, "Fumei2 via OfficeKB.com" <u53619(a)uwe> wrote: > What happens if you do not haveApplication? Same thing. Also the same if I prefix it with "Word." instead... P.
|
Pages: 1 Prev: Compare two strings and find longest common sub-string Next: Style pane customization |