Bob,
thank you, yes doing it from a module in Excel. Checking the properties to sheet25 leads my to think I have phrased my question wrong as your code is right. The (Name) is sheet25 but the Name is mobilehub. I would not have worked out what I was doing wrong without your help so thank you.
sheet25 / mobilehub is the last sheet in my workbook. Pondering why my reluctance to hardcode the last sheet name when I was happy to use sheet25 led me to want something more flexible. I have through trial and error and by luck arrived at code
If Worksheet = lastworksheet Then
MsgBox ("completed")
End If
This seems to work and is more flexible and ultimately what I want to know, when I'm at the last work sheet.
smiler44