Wrox Programmer Forums
|
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 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 February 6th, 2012, 07:57 AM
Authorized User
 
Join Date: Jul 2007
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default File Explorer in VBA

Hi
How do you open File Explorer in VBA that will open in MyComputer
and not in MyDocuments?
Thanks
 
Old February 6th, 2012, 10:49 AM
Authorized User
 
Join Date: Jan 2011
Posts: 86
Thanks: 1
Thanked 12 Times in 12 Posts
Default

I don't think you can.

You can easily specify a folderlocation with InitialFileName but there is no special folder or environment variable for "My Computer".
 
Old February 7th, 2012, 07:52 AM
Authorized User
 
Join Date: Jul 2007
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The resolution to this is the following link:


http://bytes.com/topic/visual-basic-...og-my-computer
 
Old February 7th, 2012, 08:21 AM
Authorized User
 
Join Date: Jan 2011
Posts: 86
Thanks: 1
Thanked 12 Times in 12 Posts
Default

Nice,

thanks for sharing.

Just curious now which file explorer you're using in access vba.

I was thinking of Application.FileDialog but this doesn't have an InitialDirectory param (and InitialFileName doesn't work with only the My Computer CLSID).
 
Old February 7th, 2012, 01:16 PM
Authorized User
 
Join Date: Jul 2007
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

have a look at this link there are lots of demos and usefull info

http://www.utteraccess.com/forum/Dra...-t1973842.html





Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel vba looping with Internet Explorer freezing machine NJTrader Excel VBA 2 January 24th, 2010 09:37 AM
Access Internet Explorer via Excel VBA tony_813 Excel VBA 2 March 6th, 2005 08:20 PM
Adding File Explorer to a Form mmcdonal Access VBA 1 March 1st, 2005 04:33 PM
vba and internet explorer ken1978 VB How-To 0 January 23rd, 2005 09:11 PM
Run VBA Excel File On Internet Explorer DHDang Excel VBA 0 November 12th, 2003 03:39 PM





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