eveCalypso
Programmer
Hello All,
I need the user to select a document using a file box such as the one you get when doing a Insert --> File command - a file box which has a "Range..." object.
I recorded a macro doing this, but I can only get it working if I give the exact filename up front.
I need the command to either:
a) See its returning many files of that type and open a command box/list/whatever to let the user choose, or
b) I need to be able to open this dialog up front in the correct area.
The recorded macro yielded:
ChangeFileOpenDirectory "C:\test\Motion Test\"
Selection.InsertFile FileName:="COS00003.doc", Range:="Motion", ConfirmConversions:=False, Link:=False, Attachment:=False
Ideally I would somehow want to make this work:
ChangeFileOpenDirectory "C:\test\Motion Test\"
Dim aFile As String
aFile = "*COS00003*.doc"
Selection.InsertFile FileName:=aFile, Range:="Motion", _
ConfirmConversions:=True, Link:=False, Attachment:=False
where it will then prompt me with a subset of files I can choose.
ANY help would be appreciated!
Rgds,
EvE
I need the user to select a document using a file box such as the one you get when doing a Insert --> File command - a file box which has a "Range..." object.
I recorded a macro doing this, but I can only get it working if I give the exact filename up front.
I need the command to either:
a) See its returning many files of that type and open a command box/list/whatever to let the user choose, or
b) I need to be able to open this dialog up front in the correct area.
The recorded macro yielded:
ChangeFileOpenDirectory "C:\test\Motion Test\"
Selection.InsertFile FileName:="COS00003.doc", Range:="Motion", ConfirmConversions:=False, Link:=False, Attachment:=False
Ideally I would somehow want to make this work:
ChangeFileOpenDirectory "C:\test\Motion Test\"
Dim aFile As String
aFile = "*COS00003*.doc"
Selection.InsertFile FileName:=aFile, Range:="Motion", _
ConfirmConversions:=True, Link:=False, Attachment:=False
where it will then prompt me with a subset of files I can choose.
ANY help would be appreciated!
Rgds,
EvE