Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the sheet name from Application.Caller?

Tags:

excel

vba

It is possible to get the calling workbook name Application.Caller.Worksheet.Parent.Name and cell address using Application.Caller.Address, for a function called in Excel.

Is there a way to get the sheet name, e.g. Sheet1, using Application.Caller?

like image 716
Dulini Atapattu Avatar asked Jan 13 '23 05:01

Dulini Atapattu


1 Answers

you pretty much had it already

Application.Caller.Worksheet.Name
like image 176
JosieP Avatar answered Jan 31 '23 02:01

JosieP