M
Mike McCollister
I have a VBA function in Excel that I have been using for years that will
display the sheet name in a cell. The VBA function is as follows:
Function SheetName() As String
Application.Volatile
SheetName = Application.Caller.Parent.Name
End Function
This works great. However, I have found that if I am using this function if
I open a worksheet and not change anything Excel will prompt me if I want to
save the worksheet if I have not made any changes. Why is this happening and
is there a way to prevent this from happening?
Thanks,
Mike
display the sheet name in a cell. The VBA function is as follows:
Function SheetName() As String
Application.Volatile
SheetName = Application.Caller.Parent.Name
End Function
This works great. However, I have found that if I am using this function if
I open a worksheet and not change anything Excel will prompt me if I want to
save the worksheet if I have not made any changes. Why is this happening and
is there a way to prevent this from happening?
Thanks,
Mike