Before, I would go into the macro code and paste in the whole path, if it
didn't work by just opening the document while using macro record. I just
tried a macro I had tried to create and it gave me: Run-time error '5491':
The requested member of the collection does not exist. I suspect there is
some special code to use to open the template as I would by going into
file>new, so it will open as a new document.
Code for macro that gave me that error:
Sub infop()
'
' infop Macro
'
'
Windows("4-16-03 Agenda.doc [Compatibility Mode]").Activate
ActiveWindow.Panes(1).Activate
Windows("Document6 [Compatibility Mode]").Activate
ActiveWindow.Panes(1).Activate
Documents.Add Template:= _
"C:\Documents and Settings\Sara.MOBAR\Application
Data\Microsoft\Templates\infop form.dot" _
, NewTemplate:=False, DocumentType:=0
End Sub
Tony Jollans said:
What did you do before? And what about it doesn't work in 2007?
--
Enjoy,
Tony
www.WordArticles.com
I have templates and documents that I would like to set up a macro to
open.
I
was able to do this in an older version of Word but haven't been able
to
figure it out for 2007. I can probably enter programming if someone
gives
it
to me, but I am using record to create macros. Thanks!