Can someone help w/ a Word question?
Posted by Dwight on December 04, 2001 5:54 AM
Alright, I know it's not Excel but I don't know where else to go for an answer.
I have a directory called Notes (full path below) which contains files for making quick notes on telephone conversations with clients. Each filename is one word name for client. I want to be able to type the name and run a macro which will cut the name, open to the Notes directory, paste the name in the file name section of the File Open dialog box, and open the file.
Tried to record but the macro (see below) always opens the file (Romain) I used for recording. Can someone help?
Selection.MoveLeft Unit:=wdWord, Count:=1, Extend:=wdExtend
Documents.Open FileName:="romain.doc", ConfirmConversions:=False, ReadOnly _
:=False, AddToRecentFiles:=False, PasswordDocument:="", PasswordTemplate _
:="", Revert:=False, WritePasswordDocument:="", WritePasswordTemplate:="" _