Hello everybody!
Let's see if you guys can help me. With my knowledges and a few researchs, I made something that is working, but I would like to do it in a better way.
The file is here: http://dl.dropbox.com/u/13865966/Example.xlsm
1. In A7 we can see what option was selected (if it will be in currency or percentage).
2. The number format has to change correspondingly with the choice
3. I tried to do a worksheet change event to run the number format macro automatically when A7 changes, but it won't recognize the change in A7 has a change.
4. To solve that, I thought that I could put a refresh buttom that contain a copy and past value macro that would create a "real" change in a cell and use this cell as the reference for the number format macro.
Everything is working ok, but what it would be perfect is if all of that could play smoothly in an automatic way without this refresh butom.
Is there a way to recognize a cell change in this dynamic situation or another solution?
I did a similar question here ( http://chandoo.org/forums/topic/bring-number-format-with-a-formula ) but trying to solve the primary stage of my doubt with a formula. As I found a better solution in macro, I came with this new question now that will be applied in many other situations.
Ty you in advance
Let's see if you guys can help me. With my knowledges and a few researchs, I made something that is working, but I would like to do it in a better way.
The file is here: http://dl.dropbox.com/u/13865966/Example.xlsm
1. In A7 we can see what option was selected (if it will be in currency or percentage).
2. The number format has to change correspondingly with the choice
3. I tried to do a worksheet change event to run the number format macro automatically when A7 changes, but it won't recognize the change in A7 has a change.
4. To solve that, I thought that I could put a refresh buttom that contain a copy and past value macro that would create a "real" change in a cell and use this cell as the reference for the number format macro.
Everything is working ok, but what it would be perfect is if all of that could play smoothly in an automatic way without this refresh butom.
Is there a way to recognize a cell change in this dynamic situation or another solution?
I did a similar question here ( http://chandoo.org/forums/topic/bring-number-format-with-a-formula ) but trying to solve the primary stage of my doubt with a formula. As I found a better solution in macro, I came with this new question now that will be applied in many other situations.
Ty you in advance