I am trying to get the following code to look through all folders and subfolders in Outlook under Inbox and source data from the e-mails.
The code runs but it ONLY looks through e-mails in the Inbox and the FIRST subfolder level of the Inbox. However, it doesn't look through all the subsequent subfolder levels within the first subfolder.
So here's what it looks through
Inbox --> Subfolder 1 --> stops looking
I want it to look through
Inbox --> Subfolder 1 --> Subfolder 2 --> Subfolder "n"
So for example, I have the following folders in my Inbox:
- Inbox --> Canada --> Ontario --> Toronto
OR
- Inbox --> Clothes --> Cheap clothes --> Walmart
It only looks through Inbox and the first level, so Canada or clothes, but doesn't look into the folders under Canada/clothes, such as Ontario or Cheap Clothes. I want it to go further and look at Toronto and Walmart, which are folders under Ontario and Cheap clothes.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…