Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 106
Default Set the path

My subroutines open up a lot of files with very specific names. I will be
careful to give those files the right names before starting the macro.

One thing I'm having trouble with is telling it the right path and folder to
look in. Though I could try to automate the pathname too, I am starting to
think that it would be just best to have the macro let me browse to the
folder, WITHOUT even opening a file. can someone suggest some VBA code to
have it let me browse to a folder and then set that folder as the default
place to look for any files I am to LATER open, even the very first one.

Thanks,
Grace


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Set the path

http://j-walk.com/ss/excel/tips/tip29.htm
Selecting a Directory

--
Regards,
Tom Ogilvy


"Grace" wrote in message
...
My subroutines open up a lot of files with very specific names. I will be
careful to give those files the right names before starting the macro.

One thing I'm having trouble with is telling it the right path and folder

to
look in. Though I could try to automate the pathname too, I am starting

to
think that it would be just best to have the macro let me browse to the
folder, WITHOUT even opening a file. can someone suggest some VBA code

to
have it let me browse to a folder and then set that folder as the default
place to look for any files I am to LATER open, even the very first one.

Thanks,
Grace




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 106
Default Set the path

OK, I went there. At the bottom, it says:

NOTE:
If you use Excel 2002 you can prompt the user to select a directory by using the new FileDialog object. The advantage is that you can specify a starting directory.

Does this mean that with newer versions of EXCEL (2002 and newer), there is a much easier way? His way looks quite complex.

Also, if there is not a much easier way, I note that that site says
Specifying the starting directory
If you would like to be able to specify the starting directory, things get a lot more complicated.

a.. Download Jim Rech's BrowseForFolder example
But that link is no longer working. Also, I am confused about what the first macro does. Does it just tell you what the current directory is, but doesn't allow you to "specify" the one you want? If so, and if the bottom link doesn't work, I am still out of luck.


Help, anyone!

Grace
"Tom Ogilvy" wrote in message ...
http://j-walk.com/ss/excel/tips/tip29.htm
Selecting a Directory

--
Regards,
Tom Ogilvy


"Grace" wrote in message
...
My subroutines open up a lot of files with very specific names. I will be
careful to give those files the right names before starting the macro.

One thing I'm having trouble with is telling it the right path and folder

to
look in. Though I could try to automate the pathname too, I am starting

to
think that it would be just best to have the macro let me browse to the
folder, WITHOUT even opening a file. can someone suggest some VBA code

to
have it let me browse to a folder and then set that folder as the default
place to look for any files I am to LATER open, even the very first one.

Thanks,
Grace




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Set the path

It allows you to choose the folder - just like you asked.

There is no reason that I can see to set a starting directory as you
described you problem. You want to select a directory and it allows you do
to that.

the link at the bottom would be started as
http://www.bmslt.ie

but as I said, you don't need to specify a starting directory.

there is a new object called filedialog in excel 2002 and later, but then
anyone using the code would need to have xl2002 or later.

the code isn't complex since it already has been written and all you need to
do is paste it into a new module. How complex is that?

--
Regards,
Tom Ogilvy



"Grace" wrote in message
...
OK, I went there. At the bottom, it says:

NOTE:
If you use Excel 2002 you can prompt the user to select a directory by using
the new FileDialog object. The advantage is that you can specify a starting
directory.

Does this mean that with newer versions of EXCEL (2002 and newer), there is
a much easier way? His way looks quite complex.

Also, if there is not a much easier way, I note that that site says
Specifying the starting directory
If you would like to be able to specify the starting directory, things get a
lot more complicated.
Download Jim Rech's BrowseForFolder example
But that link is no longer working. Also, I am confused about what the
first macro does. Does it just tell you what the current directory is, but
doesn't allow you to "specify" the one you want? If so, and if the bottom
link doesn't work, I am still out of luck.


Help, anyone!

Grace
"Tom Ogilvy" wrote in message
...
http://j-walk.com/ss/excel/tips/tip29.htm
Selecting a Directory

--
Regards,
Tom Ogilvy


"Grace" wrote in message
...
My subroutines open up a lot of files with very specific names. I will

be
careful to give those files the right names before starting the macro.

One thing I'm having trouble with is telling it the right path and

folder
to
look in. Though I could try to automate the pathname too, I am starting

to
think that it would be just best to have the macro let me browse to the
folder, WITHOUT even opening a file. can someone suggest some VBA code

to
have it let me browse to a folder and then set that folder as the

default
place to look for any files I am to LATER open, even the very first one.

Thanks,
Grace






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 106
Default Set the path

Yes, it is. Thanks.

"Tom Ogilvy" wrote in message
...
It allows you to choose the folder - just like you asked.

There is no reason that I can see to set a starting directory as you
described you problem. You want to select a directory and it allows you

do
to that.

the link at the bottom would be started as
http://www.bmslt.ie

but as I said, you don't need to specify a starting directory.

there is a new object called filedialog in excel 2002 and later, but then
anyone using the code would need to have xl2002 or later.

the code isn't complex since it already has been written and all you need

to
do is paste it into a new module. How complex is that?

--
Regards,
Tom Ogilvy



"Grace" wrote in message
...
OK, I went there. At the bottom, it says:

NOTE:
If you use Excel 2002 you can prompt the user to select a directory by

using
the new FileDialog object. The advantage is that you can specify a

starting
directory.

Does this mean that with newer versions of EXCEL (2002 and newer), there

is
a much easier way? His way looks quite complex.

Also, if there is not a much easier way, I note that that site says
Specifying the starting directory
If you would like to be able to specify the starting directory, things get

a
lot more complicated.
Download Jim Rech's BrowseForFolder example
But that link is no longer working. Also, I am confused about what the
first macro does. Does it just tell you what the current directory is,

but
doesn't allow you to "specify" the one you want? If so, and if the bottom
link doesn't work, I am still out of luck.


Help, anyone!

Grace
"Tom Ogilvy" wrote in message
...
http://j-walk.com/ss/excel/tips/tip29.htm
Selecting a Directory

--
Regards,
Tom Ogilvy


"Grace" wrote in message
...
My subroutines open up a lot of files with very specific names. I

will
be
careful to give those files the right names before starting the macro.

One thing I'm having trouble with is telling it the right path and

folder
to
look in. Though I could try to automate the pathname too, I am

starting
to
think that it would be just best to have the macro let me browse to

the
folder, WITHOUT even opening a file. can someone suggest some VBA

code
to
have it let me browse to a folder and then set that folder as the

default
place to look for any files I am to LATER open, even the very first

one.

Thanks,
Grace










  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 196
Default Set the path

Tools Options General

Default File Location


-----Original Message-----
My subroutines open up a lot of files with very specific

names. I will be
careful to give those files the right names before

starting the macro.

One thing I'm having trouble with is telling it the right

path and folder to
look in. Though I could try to automate the pathname

too, I am starting to
think that it would be just best to have the macro let me

browse to the
folder, WITHOUT even opening a file. can someone

suggest some VBA code to
have it let me browse to a folder and then set that

folder as the default
place to look for any files I am to LATER open, even the

very first one.

Thanks,
Grace


.

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 106
Default Set the path

Unless I'm wrong, if I save the file, this stays as the default path for
every new file I might open. I do NOT want to change my default path, just
to assign one for the current file for the moment. But Tom already gave me
an answer, so I'm Ok now.

Thx,
G

"Mark" wrote in message
...
Tools Options General

Default File Location


-----Original Message-----
My subroutines open up a lot of files with very specific

names. I will be
careful to give those files the right names before

starting the macro.

One thing I'm having trouble with is telling it the right

path and folder to
look in. Though I could try to automate the pathname

too, I am starting to
think that it would be just best to have the macro let me

browse to the
folder, WITHOUT even opening a file. can someone

suggest some VBA code to
have it let me browse to a folder and then set that

folder as the default
place to look for any files I am to LATER open, even the

very first one.

Thanks,
Grace


.



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
File Path Too Long? Not Anymore! Check out Long Path Tool Max Loger Excel Discussion (Misc queries) 1 March 24th 17 07:59 AM
http://CannotDeleteFile.net - Cannot Delete File? Try Long Path ToolFilename is too long? Computer Complaining Your Filename Is Too Long? TheLong Path Tool Can Help While most people can go about their businessblissfully unaware of the Windo Max Loger Excel Discussion (Misc queries) 0 June 14th 11 04:30 PM
Formula too long - new file path is shorter than old file path - Excel 2003 Greg J Excel Worksheet Functions 1 November 22nd 06 05:16 PM
hyperlink navigation path path wrong in Excel 2003 CE Admin Excel Discussion (Misc queries) 5 January 7th 06 07:47 PM
how to change absolute path to relative path hwijgerse Excel Worksheet Functions 0 November 25th 05 07:18 AM


All times are GMT +1. The time now is 02:31 PM.

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

About Us

"It's about Microsoft Excel"