To answer your first question:
If ActiveSheet.Name <> "balance" Then ActiveSheet.Name = "balance"
I know this is a simple one .. but I cant find the answer in here using search .. so I've got to ask this question ..
I want to run a macro that gets the current worksheet name from the tab at the bottom and then changes it to a set string eg; "balance"
I know its simple .. but I dont know how to read the current worksheet name and change it .. cos the user may have manually changed the tab name.
Secondly .. is there a way of stopping the users from changing sheet tab names ?
Thanks
Bill
To answer your first question:
If ActiveSheet.Name <> "balance" Then ActiveSheet.Name = "balance"
To answer your second question:
Go to tools|options|view tab|uncheck "Sheet tabs" Now the user can't see the sheet tabs, but he/she can cycle through them by pressing ctrl+PageUp or ctrl+PageDown...not sure if that is what you are looking for.
Thanks guys for your help .. I now know how to check & change tab names.
I think hiding the tabs and making the users use contol keys to change tabs would irritate them .. but thanks for the suggestion ..
Is there no VB code I can use to disable changing of the tab name ?
Like this thread? Share it with others