TheWennerWoman
Active Member
- Joined
- Aug 1, 2019
- Messages
- 270
- Office Version
- 365
- Platform
- Windows
Hello, hope someone can help, I've got myself into a bit of a pickle with this
I have a folder, say, c:\users\test that contains a number of Excel files (*.xlsx). This will vary from month to month but let's say for this question it contains 1.xlsx, 2.xlsx, 3.xlsx (i.e three files).
What I want to do is loop through the folder and list the filename in Sheet1 column A. Then I want to open each file, capture the email address that is held on a tab named "emails" (cell A1) and then close the file.
The email address will go into Sheet1 column B.
My output would look something like this
Is this do-able?
Many thanks!
I have a folder, say, c:\users\test that contains a number of Excel files (*.xlsx). This will vary from month to month but let's say for this question it contains 1.xlsx, 2.xlsx, 3.xlsx (i.e three files).
What I want to do is loop through the folder and list the filename in Sheet1 column A. Then I want to open each file, capture the email address that is held on a tab named "emails" (cell A1) and then close the file.
The email address will go into Sheet1 column B.
My output would look something like this
Code:
1.xlsx donald.trump@whitehouse.gov.us
2.xlsx vladimir.putin@kremlin.ru
3.xlsx bill.gates@microsoft.com
Is this do-able?
Many thanks!