|
-
Jul 22nd, 2005, 03:53 AM
#2
Re: How can I automate "Get External Data..." functionality in my code?
1) Use functions like Dir (read the help files) and a string variable to hold the path and another to hold the returned filename.
This will give you a filepath and a filename to use in step 2
2)
You can import via Access (if you are using that) import (I think it is docmd.transferstext or docmd.transferspreadsheet).
Or you can open an instance of excel and loop through the cells with the data in.
More coding, but possibly better/more flexible.
Feeling like a fly on the inside of a closed window (Thunk!)
If I post a lot, it is because I am bored at work! ;D Or stuck...
* Anything I post can be only my opinion. Advice etc is up to you to persue...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|