Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Open Folder from inputbox

I am trying to open a folder or a file from entering a partial folder name
in an Input box. The folders are always in the path: G:\Shared
Documents\Purchase Orders. All of the folders located are similar to the
following: 320063 Process Plus or 410009 American Building. In all cases
there is a 6 digit number preceding the name. How do I enter only the 6
digit number in the inputbox and have the Open dialog show with that folder
opened. This is as far as I have gotten.



ChDrive "G"
ChDir "G:\Shared Documents\Purchase Orders"
myFldr = Application.InputBox("Enter a folder or PO number")


Thanks,

Phil


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 196
Default Open Folder from inputbox

String together the first part of your directory as the
first argument in the method below:


Application.Dialogs(xlDialogOpen).Show ("c:\documents and
settings")


for you, it would be something like:

Application.Dialogs(xlDialogOpen).Show (myFlder & "NAME")

You could use a Select Case or If structure to assign
the "NAME" as a variable based upon the results of the
inputbox, if that's how your system works.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Open a Folder danpt Excel Discussion (Misc queries) 11 October 7th 08 02:25 PM
VBA - open folder Jeff Excel Discussion (Misc queries) 1 March 23rd 07 01:33 AM
Open Dialogue Box to a certain folder????? German[_2_] Excel Programming 5 November 25th 03 11:55 PM
Open Folder Pedro Excel Programming 1 August 25th 03 05:39 PM
Open Folder Pedro Excel Programming 1 August 25th 03 05:30 PM


All times are GMT +1. The time now is 06:37 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"