You can access an Excel file from SQL Server it you set up a linked server to it. You need to install the ACE OLE DB driver. ACE does not come with SQL Server, but is a separate download (and is rather part of the Office family.)
I should warn you that this is not a trivial exercise, not the least because if it doesn't work, the error message gives very little clue about what is wrong. Through the years that I've been monitoring SQL Server forums, I have seen plentiful of questions from people who have not been able to get this to work. (And I have never tried it myself.)
As for what happens with your VBA code when you access the file from SQL Server, I don't know. But my gut feeling is that it will not be executed. One reason for this is that the Excel file is not opened in the same sense, as when you open it with Excel. Also important to keep in mind is that SQL Server runs as a server, and does not have a desktop, so SQL Server cannot open the Excel file to display the content.
As you may sense, I don't really want to encourage you to take this route, but I think you should reconsider and take a different path for what you want to achieve.