USer defined functions

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

Guest

I need to refer to the cell in which my user defined function has been
entered into. i only know how to use ActiveCell to refer to things.

What other ways are there to reference objects.

Specifcally I am using a formula to print the worksheet name in some cells.

Funtion WS()

WS = ActiveCell.Worksheet.Name

End Function
 
Hi Scooter,

Look in VBA help for the Caller property and look at the given example.
 

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