Wrox Programmer Forums
|
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
 
Old June 11th, 2007, 05:42 PM
Registered User
 
Join Date: Jun 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default save in location

Hi i am not an active coder but with the new word 2007 I find myself coding alot. i am trying to make a macro that saves in a specific location but still asks you for the filename it is to save under.

if anyone can help please do.
 
Old July 13th, 2007, 04:09 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Create a user form that prompts for the filename into a text box, and then use the saving code non-interactively with your predetermined path, and the user supplied file name.

You can add your own validation (looks for either .doc on the end, or no periods in the file name; look for disallowed characters [ \ / : * ? " < > | ]; and so on) that must be satisfied before you will accept the name typed into the form.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Save file location code. JpaulH Access VBA 2 June 9th, 2006 07:50 AM
One Location to Many Locations sudipkumar Biztalk 0 April 15th, 2005 08:13 AM
Database Location egerdj BOOK: Beginning ASP 3.0 1 February 20th, 2004 04:27 AM
set location Sharonanna Crystal Reports 1 January 15th, 2004 06:53 AM





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