A
Adam Kroger
is there a function that returns the name of the sheet it is on?
Gord Dibben said:Adam
UDF.............
Function SheetName(Optional ByVal rng As Range) As String
Application.Volatile
If rng Is Nothing Then Set rng = Application.Caller
SheetName = rng.Parent.Name
End Function
OR........
See Bob Phillips' site for more on sheet and filenames.
http://www.xldynamic.com/source/xld.xlFAQ0002.html
Gord Dibben Excel MVP