xla function called from sheet - how do I find source cell?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have written a function in an xla addin which is called directly from a cell in the xls sheet
I wish to know within the xla precisely which cell in which sheet made that call to it.
Is there any way that I can get hold of this information?
 
fantastic
works great

Dim xlsName As Strin
Dim sheetName As Strin
Dim row As Intege
Dim column As Intege
Set from = Application.Calle

xlsName = from.Parent.Parent.Nam
sheetName = from.Parent.Nam
row = from.ro
column = from.colum

thank you
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top