How to Get mail from Inbox and Inbox subfolders?

Hi

How to get mail from folder and subfolders the extract to excel