Edit: I took quite a while composing this post so I hadn't seen the post above.
I'll leave this one though in case a re-visit is required later.
I dont want to tire you so much
I guess it is too complicated
You don't have to worry too much about that. You aren't paying me anything so I can quit any time if I feel like it. However, the reason we help on the forum is that we
like doing it so generally there is not a problem.
If I change anything in input charts it recalculate all "subjects" and if there will be hundreds of these subjects it will calculate all night
That could well be so & we should be able to avoid that situation.
(It eventuated like that because when I started developing the code I based it on your initial screen shot which only had
two comment cells. Also, as I knew no different at the time, it was those input cells that I was monitoring for change, not the tables.)
so I am asking if there is any posibility to make it on button or change only cells which are affected.
I want to change S1401 with text: NEW PRICE so it will change only S1401 with comment NEW PRICE.
I think that should be possible, but here you have given one example and in my mind (not knowing your actual sheet or how it will be used) I can think there may be other possibilities and things I need clarified so I can hopefully start with
all the facts I need.
The following questions are aimed at the layout shown in
this link you provided earlier.
1. When you mention changing to "NEW PRICE", can you confirm that such a change would be in column B &/or E &/or H?
2. If you did change the value beside S1338 in one of the tables, that would affect
two of the cells in column J. Is that a real situation? That is, can a particular "Subject" appear in more than one cell in column J?
3. Do any of the column J entries get changed manually or by other code? If so, wouldn't that mean we had to monitor that range as well and re-build comments for those changed cells too?
4. Do any of the column A, D or G entries ever get changed?
If so ..
a) If, say, all the S1401 entries in the tables were changed to S1402 ..
i) What would happen to the main value in cell J5?
ii) What should happen to the comment in cell J5?
b) If, say, all the S1401 entries in the tables and the values beside them were deleted ..
i) What would happen to the main value in cell J5?
ii) What should happen to the comment in cell J5?
c) If cell A3 was changed to S1111, would that value automatically appear in column J by formula or other code? (Or perhaps all possible values for columns A, D & G actually already occur in column J in your real data?)
Lots of questions, & there will likely be more, but I am just trying to understand your circumstances as well as possible so I can develop the most effective solution that I can think of.