Jonnathanjons
Member
Hello ,
Can you help to write a script which can search for a sheet name by an input box. and the also a message box to Go to next search if the right value is not found. It should search the name partially and go to next matching sheet name as I hit the message box Search next or Ok to Cancel search .
It should work from personal.xlsb file to execute for an active workbook.
I have a template which can contain more than 50 sheets and currently there is no way to search the sheet other than manual way.
Kindly note , would like to have it in a vba wich can be executed from a personal.xlsb file
Can you help to write a script which can search for a sheet name by an input box. and the also a message box to Go to next search if the right value is not found. It should search the name partially and go to next matching sheet name as I hit the message box Search next or Ok to Cancel search .
It should work from personal.xlsb file to execute for an active workbook.
I have a template which can contain more than 50 sheets and currently there is no way to search the sheet other than manual way.
Kindly note , would like to have it in a vba wich can be executed from a personal.xlsb file
Code:
ShtName = inputbox("Enter the sheet name:")
If InStr(UCase(oSheet.Name), UCase(ShtName)) Then
Msgbox ("Search Next",vbYesNo)
If Vbyes Then Search next in the sheet matching the sheet name
Else " Select the sheet chosen by search"
END If
End Sub