We really need some more information.
Is the message exactly 'Excel locked for editing'
Is this in a dialog box, if so what is the title of the box.
Is there any more information shown or is it only 'Excel locked for editing'
Tell us what you are trying to do when you get this message. Are you opening Excel itself, or are you opening a file.
If its a file is it stored on your own PC/laptop or is it stored on a server.
Is the copy of Excel on your own PC/Laptop or is it loading from a server.
The more information, the more chance of getting a useful answer.