Create special «File New» form

G

George Perchette

Hi

I need to create a special «File New» form.

Are there any articles/infos how to read files and
folders in a specific folder and to display it in a
form (like File New) without using the builtin
dialogues?

Word 2000

Thanks for any help.

Best Regards, George
 
P

Peter Hewett

Hi George Perchette

Why don't you tell us what you are trying to achieve and why. You may find that there are
other ways to achieve what you want. In which case others may have been there before you.

HTH + Cheers - Peter
 
G

George Perchette

Dear Peter

Thanks for your message.

A user should be able to open new files based
on templates stored in a third* path (*not the
user-templates- nor the workgroup-templates-path).

In earlier versions I have used the built-in form
"FileNew" to let the user choose the template
he would like to create a new file from.

I changed in the background the path from the
user-templates- to the mentionned individual path
and after closing the FileNew-dialogue I changed
the path back to the default setting.

Problem: More and more companies use policies
and so I have no chance to change one of the
pre-settings for the templates-paths.

I am now in the process of creating an own
FileNew dialogue/form, using the mentionned
individual path and presenting the content (templates
wizards and subdirectories) to the user in a list.

My question: I could go through something like
«Application.FileSearch» and list all found files in
a list and directories with a «.. directory xyz ...).
But maybe there is an much simpler possibility to
show the content of a directory (incl. subdirectories)
in a form/list ?!


Best Regards, George
 
P

Peter Hewett

Hi George Perchette

Are you saying that on PC's that enforce policy that this disables the following line of
code:
Application.Options.DefaultFilePath(wdWorkgroupTemplatesPath) = NewFolder

is denied? I'm trying to corroborate this with an Office deployment expert I know and
also to see if there are any workarounds.

I'll get back APAP.

Cheers - Peter


Dear Peter

Thanks for your message.

A user should be able to open new files based
on templates stored in a third* path (*not the
user-templates- nor the workgroup-templates-path).

In earlier versions I have used the built-in form
"FileNew" to let the user choose the template
he would like to create a new file from.

I changed in the background the path from the
user-templates- to the mentionned individual path
and after closing the FileNew-dialogue I changed
the path back to the default setting.

Problem: More and more companies use policies
and so I have no chance to change one of the
pre-settings for the templates-paths.

I am now in the process of creating an own
FileNew dialogue/form, using the mentionned
individual path and presenting the content (templates
wizards and subdirectories) to the user in a list.

My question: I could go through something like
«Application.FileSearch» and list all found files in
a list and directories with a «.. directory xyz ...).
But maybe there is an much simpler possibility to
show the content of a directory (incl. subdirectories)
in a form/list ?!


Best Regards, George

HTH + Cheers - Peter
 
D

Doug Robbins - Word MVP

Hi George,

See the article “How can I print a list of My Documents, or the contents of
any folder?” at:

http://word.mvps.org/FAQs/General/PrintDocList.htm

That will show you how to get a list of all of the templates in a folder.
You could modify it to load the templates into a listbox on a userform.


--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 
P

Peter Hewett

Hi George Perchette

I've confirmed what you already know! Having a system policy in place seemingly allows
the assignment to work, but it just does not do anything!

I see Doug's provided an answer, so I'll leave it for now. Post again if you still have
questions.

HTH + Cheers - Peter
 
G

George Perchette

Dear Doug

Thanks for your help and assistance. Your information
will lead me hopefully to a solution.

Dear Peter: many thanks for your help, too!

Best Regards, George
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top