I use the following all the time to manipulate Excel data from Access.
Set xl = CreateObject("Excel.Object")
However, this method creates a new Excel instance and only applies formatting, for example, to it.
xl.Range(...).Interior.Color = blah, blah, blah
Will only refer to that instance of an Excel object that was create with the first line of code.
The problem I am having is that I already have an instance of Excel open and there is VBA in Access that I want to use to apply formatting to the already open file to prep it for importing. I guess I could create the new instance of Excel and just refer to the workbook I am working on with xl.Workbook(blah).Activate
but that seems kinda messy.
Yea, I could move the code to Excel, but that defeats the purpose of manipulating Excel from Access and having my VBA in central location accessible to users.