Open File within a macro
- From: "Rob" <randwnobel@xxxxxxxxxxx>
- Date: Sun, 25 Jun 2006 15:31:24 +0930
I would like to know the code (to put within some other code), which will
run the Open file dialogue, & pointing to the desktop, so that a text file
can be selected.
(Then, I need that selected text file opened so that the macro will do some
action on that file and revert back to the workbook for mor action.)
I found something in help, which opens the dialogue box, but it does not
open the file, just brings up a message box that tells me the file I've
selected.
Furthermore, is there a way for that code to point to any desktop no matter
where it is located in the Windows Explorer tree? (As I plan to use the
workbook on various machines.)
Rob
.
- Follow-Ups:
- Re: Open File within a macro
- From: Jim Hicks
- Re: Open File within a macro
- From: Nick Hodge
- Re: Open File within a macro
- From: Leith Ross
- Re: Open File within a macro
- Prev by Date: Re: Importing Text File Data into Excel where records span several
- Next by Date: Re: enter text below table
- Previous by thread: Re: how do i select all the visible cells only when using auto filter
- Next by thread: Re: Open File within a macro
- Index(es):
Relevant Pages
|