Hi abz;
Sorry this has taken so long, we had a power failure here. We just got our power back. I was gone all day yesterday which is the only thing that kept me from going out of my mind.
I happened to be just finishing my reply to you when the power went out, so now I have to start again.
That is something i suggested earlier that i would divide this task into 2 main tasks, first one the cell next to the location name would pick up the lastest fault from sheet 4 and display it, and the second bit would be that the text box picks up the cell and then only appears when the user clicks on the corresponding location shape.
So are you saying that you would like both? I'm working on a formula that will put it into the cell you want.
The problem of not having the text box is that the shape are going to be on a geographical map rather than being next to a cell where the latest fault is being displayed. I hope you understand what i am saying.
I have no idea what this means. I hope you mean that you want to move the shapes to another sheet that has a map on it. If not, then I have no idea whether you can move a shape with a text box attached.
I can give you a lead on a text box appearing and disappearing, i found this on the following link:
Thanks for the link. It puts another tool in my toolbox. They are pretty easy to do, so no problem there.
Just to mention i am using a code which is a worksheet change code and the button is merely just to go to a cell and edit it which in turn triggers the worksheet change code.
I cleaned up your code. You want to put the code for updating colors in a separate macro, so you can call it directly without having to artificially change something to get it done. Also, if you want to move the shapes to a different sheet, it could easily make it easier later on.
If I may make a suggestion:
You can get rid of the button altogether, and have the shapes automatically updated by using this
That way the coloring gets updated whenever any cell changes on the sheet. (Delete CommandButton1_Click, and you can take it out of Worksheet_Change).
I'm working right now on having the shape click put a text box next to it.
Bookmarks