file open

J

Judge

im writting a macro in excel which requires that i import data from a txt
file. ok. the txt file changes on each ocaasion. how do i from excel tell the
macro which file to open and from which location.
pls help thnx.
 
B

Bob Greenblatt

im writting a macro in excel which requires that i import data from a txt
file. ok. the txt file changes on each ocaasion. how do i from excel tell the
macro which file to open and from which location.
pls help thnx.
Check VB help for GetOpenFileName. This function will let the user navigate
to the file, and returns the full path. You then use that to open the file.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top