Hello,
I made a code on Worksheet_Calculate that only serves for the sheet called "Input". I started with a condition:
If ActiveSheet.Name = "Input" Then
stuff
End If
So I have no issues when in another sheet, at least. However, sometimes, when I edit something on the sheet "Input", I get an error, although nothing is wrong. (e.g. it redirects me to an "else" statement in the code and there's nothing wrong with the code...) If I put it in a button instead, it does nothing wrong, but I need it to trigger everytime someone edit the page.
So here's what I'm doing:
I want a code that triggers when someone a cell in the following range: F10:I17. It makes buttons appear or disappear, depending on the total in that range. Example:
problem.png
As you can see, every row has 2 button associated to it; if the total is at least one for the row, they appear. Here's my code (it works):
(EDIT: Yeah forget about the If 1 = 2, that was just me trying to stop the code from working for some time, it's just a comment anyway)![]()
Please Login or Register to view this content.
With the On error clause, every now and then when I do anything on the file, the msgbox appears and everything freezes, excel crashes. What's going on? all those objects exist and both those sheets exist, so there's no worries to have about that. I therefore am thinking it is caused by Worksheet_Calculate doing weird things I don't understand. Therefore..
1- Does anyone have a way to fix this? OR
2- Does anyone see another way to exactly what I'm trying to do, without using Worksheet_calculate?
Hope it's clear enough!
Thanks
Bookmarks