Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Other Office > Word VBA
| Search | Today's Posts | Mark Forums Read
Word VBA Discuss using VBA to program Word.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Word VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old December 5th, 2011, 02:45 AM
Authorized User
Points: 165, Level: 3
Points: 165, Level: 3 Points: 165, Level: 3 Points: 165, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2011
Posts: 10
Thanks: 1
Thanked 0 Times in 0 Posts
Post open a file dialog in word

Hi,

I want to open a file dialog from word with files filtered for *.doc files. Is there a vb code that will work on word 2000 as well as in the latest version?


Thanks
  #2 (permalink)  
Old December 6th, 2011, 10:02 PM
Friend of Wrox
Points: 3,060, Level: 23
Points: 3,060, Level: 23 Points: 3,060, Level: 23 Points: 3,060, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2005
Location: , , .
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

You can use

Dialogs(wdDialogFileOpen).Show

from Word VBA

If you want a comprehensive one you have to go for CommonDialog control on a user form where you can have more control (http://vbadud.blogspot.com/2007/06/v...on-dialog.html)

Cheers
Shasur
__________________
C# Code Snippets (http://www.dotnetdud.blogspot.com)

VBA Tips & Tricks (http://www.vbadud.blogspot.com)
  #3 (permalink)  
Old December 7th, 2011, 02:58 AM
Authorized User
Points: 165, Level: 3
Points: 165, Level: 3 Points: 165, Level: 3 Points: 165, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2011
Posts: 10
Thanks: 1
Thanked 0 Times in 0 Posts
Post

Thanks for your reply Shasur.

I will check the link.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Open File Dialog Issue rodmcleay VS.NET 2002/2003 0 March 7th, 2007 12:10 PM
open file dialog box mh VB.NET 7 April 11th, 2005 10:15 AM
Preview a picture in the open file dialog? Dinesh22 VB.NET 2002/2003 Basics 1 January 19th, 2004 11:21 AM
Open File Dialog Box KennethMungwira VB.NET 3 August 3rd, 2003 09:44 PM
Open File Dialog Box KennethMungwira VB.NET 2 June 27th, 2003 04:36 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.