I’ve been writing an application in C# which creates Custom Document properties in an Excel spreadsheet, I have a function for this which takes in a Workbook Object…
However, actually getting the current Workbook object is proving to be quite annoying, I am using ExcelDNA to add functionality, however, I can’t seem to pass my function a valid Workbook COM object.
This is the way I am currently doing it it seems to work really well
Then you get active workbook
Then I would try what you have and see how it works
Hope this helps