Hi Elroy,
To migrate Public Folders from on-premise Exchange 2007 to Office 365, please make sure the Exchange Server version meets the requirement: Exchange 2007 SP3 RU10
Here is an article about the scenario which includes the detailed steps: Migrate Legacy Public Folders to Exchange Online.
Best Regards,
Bruce Zhou