Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Word
application.errors
conversions
docmanagement
drawing.graphics
formatting.longdocs
international
internet.assistant
mail
mailmerge.fields
menustoolbars
newusers
numbering
oleinterop
pagelayout
printingfonts
setup.networking
spelling.grammar
tables
vba.addins
vba.beginners
vba.customization
vba.general
vba.userforms
web.authoring
word6-7macros
word97vba
  
 
date: Wed, 12 Sep 2007 22:34:00 -0700,    group: microsoft.public.word.vba.customization        back       


Hooking Into the Microsoft Office File Open/Save Dialogs   
Hello Everybody,

I am trying to get and set the following information from File/Open save 
dialog of Microsoft Office 2000/2003/2007

1.Retrieve the currently displayed/selected folder path and also the file 
name that is selected if any.

2. Retrieve the selected file path, when the user clicks the open or save 
button.

3.Set a pre-defined string path within the file-name combo box.

I have been able to do the above task in case of File Open/Save common 
controls dialog(used by WordPad ,Notepad,
Acrobat Reader etc.) by using the dialog functions depicted in MSDN. But it 
is not working with Microsoft Office Dialog and I have found no MSDN 
documentation that depicts the internal messages of Microsoft Office Dialogs.

Please help me if you can.

Thanks and regards,
date: Wed, 12 Sep 2007 22:34:00 -0700   author:   Juggernaut

Re: Hooking Into the Microsoft Office File Open/Save Dialogs   
Hi Juggernaut

The following two articles should get you on your way.

Intercepting events like Save and Print
http://www.word.mvps.org/FAQs/MacrosVBA/InterceptSavePrint.htm

Note: Saving is covered in that article. You'll need the FileOpen command to 
trap opening.

Getting help with calling Word's built-in dialogs using VBA (and why doing 
so can be much more useful than you'd think)
http://www.word.mvps.org/FAQs/MacrosVBA/TaskPanesReference.htm

Hope this helps.

Shauna Kelly.  Microsoft MVP.
http://www.shaunakelly.com/word


"Juggernaut"  wrote in message 
news:621876B9-F221-45D6-974F-989CC2970A20@microsoft.com...
> Hello Everybody,
>
> I am trying to get and set the following information from File/Open save
> dialog of Microsoft Office 2000/2003/2007
>
> 1.Retrieve the currently displayed/selected folder path and also the file
> name that is selected if any.
>
> 2. Retrieve the selected file path, when the user clicks the open or save
> button.
>
> 3.Set a pre-defined string path within the file-name combo box.
>
> I have been able to do the above task in case of File Open/Save common
> controls dialog(used by WordPad ,Notepad,
> Acrobat Reader etc.) by using the dialog functions depicted in MSDN. But 
> it
> is not working with Microsoft Office Dialog and I have found no MSDN
> documentation that depicts the internal messages of Microsoft Office 
> Dialogs.
>
> Please help me if you can.
>
> Thanks and regards,
>
date: Thu, 13 Sep 2007 17:41:33 +1000   author:   Shauna Kelly

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us