hy all,
i'm got VBA code for taking a sheetname into cell, but problem is it's not run automaticaly, so everytime i change the sheetname the i must recalculated to make the sheetname on cell change.
this is the code :
whit that code i can take the sheetname with this formula =sheetname(A1), please help me to make this run automatic
i'm newbie to VBA
i'm got VBA code for taking a sheetname into cell, but problem is it's not run automaticaly, so everytime i change the sheetname the i must recalculated to make the sheetname on cell change.
this is the code :
Code:
Public Function sheetname(ByVal target As Range)
sheetname = target.Worksheet.Name
End Function
whit that code i can take the sheetname with this formula =sheetname(A1), please help me to make this run automatic
i'm newbie to VBA
