Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 14th, 2004, 04:26 PM
Registered User
 
Join Date: Oct 2004
Location: duxbury, ma, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Capture OutputTo Destination and Filename?

Hello,

I'm using the OutputTo method to deliver query results from Access to the user in an Excel worksheet. I leave the destination/filename parameter blank so the user can select the directory path and pick their own filename. The dialog box looks just like the Save As dialog box.

I would like to capture the directory path and filename from the dialog box so that I can open the sheet and do some formatting before the user gets to it. I have the code to do the formatting, but it depends on the path/filename, which I'd like to pass it.

Does anyone know how to capture that path/filename from the OutputTo dialog?

Thanks!



steve
Reply With Quote
  #2 (permalink)  
Old October 18th, 2004, 03:09 AM
Authorized User
 
Join Date: Jul 2003
Location: Stockton on Tees, , United Kingdom.
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Use Msgbox to write your own dialog box, process the input and then include the final path in the Output statement.

Cheers Ray
Reply With Quote
  #3 (permalink)  
Old October 18th, 2004, 08:59 AM
Registered User
 
Join Date: Oct 2004
Location: duxbury, ma, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for replying, Ray. I actually got it to work (after lots of trial and error) through the Excel GetSaveAsFilename dialog box, which gives me the selection of the diretory path as well as filename.
Thanks again.

steve
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OutputTo .csv nspeelman Access 7 November 17th, 2008 01:37 PM
docmd.outputto Scripts82 Access VBA 0 March 9th, 2006 04:19 AM
outputto command ajmil11 Access 1 February 1st, 2006 08:21 AM
OutputTo Macro Question Corey Access 1 September 19th, 2005 11:36 PM
OutputTo option for HTML file rry2k Access 2 May 31st, 2004 10:08 PM



All times are GMT -4. The time now is 03:12 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.