Results 1 to 3 of 3
  1. #1
    New Lounger
    Join Date
    Feb 2005
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Insert File Menu (XP)

    I'm trying to write a macro which will display a list of files available for insertion from a specific directory, wait for the user to choose a file to insert, then change the directory back to the working directory. I recorded the following, by just inserting a file, but again, I want the user to choose which file to insert.

    ChangeFileOpenDirectory "C:Ascend78 PMMC"
    Selection.InsertFile FileName:="PMMC CLIENT USER GUIDE 07.31.2003.doc", _
    Range:="", ConfirmConversions:=False, Link:=False, Attachment:=FalseChangeFileOpenDirectory "C:Ascend78 PMMC"
    ChangeFileOpenDirectory "C:Ascend"

    Thanks!

  2. #2
    Super Moderator
    Join Date
    Dec 2000
    Location
    New York, NY
    Posts
    2,970
    Thanks
    3
    Thanked 29 Times in 27 Posts

    Re: Insert File Menu (XP)

    Try this instead of Selection.InsertFile:

    Dialogs(wdDialogInsertFile).Show

  3. #3
    New Lounger
    Join Date
    Feb 2005
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Insert File Menu (XP)

    Thank you, I knew there was a simple answer!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •