Excel 2007 and Excel 365 both support Visual Basic for Applications (VBA) macros, but there are some differences between the two versions with regards to their macro capabilities.
Excel 2007 provides a basic set of macro-recording and editing tools, and supports VBA macros. However, the macro capabilities in Excel 2007 are limited compared to those in Excel 365. For example, Excel 365 includes additional macro recording and editing tools, and supports the use of newer and more complex VBA constructs.
In addition, Excel 365 also provides access to a wider range of online resources and support for macros, including online forums, support communities, and online training resources. Additionally, Excel 365 provides better compatibility with other Microsoft Office applications and services, making it easier to automate tasks and workflows that involve multiple Office applications.
So while both Excel 2007 and Excel 365 support VBA macros, the macro capabilities and resources available in Excel 365 are generally more advanced and comprehensive.