Need to find the name of the current file in excel addin

I have an excel addin for 2003 excel. This addition adds a menu command to the excel menu.

what my requirement is that when I click on this menu command, I need to send the name of the current file to another process ... how do I get this information.

Please help me thanks Sandeep

+4
source share
1 answer

If you are in addin try

string currentWorkbookFileName = this.Application.ActiveWorkbook.Name 

(if not, I think there is a global one, something like Globals.Application or Globals.ThisAddin.Application )

+6
source

Source: https://habr.com/ru/post/1337086/


All Articles