corentint
New Member
- Joined
- Jan 31, 2022
- Messages
- 32
- Office Version
- 365
- Platform
- Windows
Hi everyone.
No offence, but sometime I find some of the follow-up questions to a query, not to mention some of the answers, derisive and patronizing.
I follow up here on the longtime ago (2020) question above. (this Thread)
But first, some background:
Please, no answers of the type "you could simply have VBA calculate the MAX for the range instead of the Excel formula". I have seen that written in the past! If I wanted to do that, I would have done it, duh.
And this is only one example given, I have had other formulae that behave this way from time to time on other sheets, AND in other Workbooks.
The only thing that I can seem to remember peculiar to this is that they are always short formulae, not monster formulae!
Thank you for meditating about this and possibly having some good answers to share!
No offence, but sometime I find some of the follow-up questions to a query, not to mention some of the answers, derisive and patronizing.
I follow up here on the longtime ago (2020) question above. (this Thread)
But first, some background:
- I have been using extensively Excel for 25 years and my files are all xlsm (with the odd special file format xlsb sometimes)
- I have the latest updated Excel version of Office 365 ( Microsoft® Excel® pour Microsoft 365 MSO (Version 2207 Build 16.0.15427.20182) 64 bits ))
- I operate under W10 , Version 21H2 sub version 19044.1766 (this might be old by a few days, updates are constrained by week on my PC for sanity reasons).
- I have a reasonably fast and modern computer, and, at any rate, Excel is super fast on it.
- I have been programming VBA for my excel work, for almost 15 years. I consider myself no pro, but fluent (last program made contains upward of 5000 lines of code excluding comments).
- I write in an Excel sheet the follow formula, at the end, but outsidethe named range :
- =Max(TotMEB). The named range contains only numeric values. It gives the right answer.
- About 5 columns to the right, I write another such: =Max(TotColor) (again outside the named range, all numerics in the range).
- Both cells containing the formulae are named ranges consisting of the one only cell. (as a matter of fact, around 95% of cells used in my Excel sheets are named ranges - much more flexible).
- Immediately, if I go back to my original formula =Max(TotMEB), I find it replaced by the result as value in the cell that had the formlae!
- The format of all cells is the standard form; I do not detect any caracter impeding the formula, which start with =
- No save file has been done. But if I save the file, that does not prevent this phenomena to happen, unless, of course, I close and reoppen the file, in which case formulae are still there. Thus this seems to happen when writing several formulae in succession on a sheet.
- If I recreate the formula again, it appear to stay put, but NOT allways.
- Note that this happens on same sheet, and, between formula editings, I do not navigate elsewhere.
- I have also had the case of writing a formula on one sheet, then another one on another sheet, only to find out later that one or several have reverted to values only. And yes, this might happen once or twice in the dead of night, through fatigue, but it cannot be recurring like this all the time, especially when i am aware of it.
- That being said:
- It could be an involuntary keyboard of mouse gesture (although I have no mouse gesture programmed).
- I could be lunatic.
- However, since this has happened several time in the last year or so, I consider myself no that lunatic, and further I am on the lookout for this sort of shenanigans now
- When I spot this happening, and do the correction (sometime twice in row) which appears to eventually work.
- If I save and reopen the file, the formulae are still there.
- However, this had not happened lately until today, and as I edited a sheet for something else, I suddenly realized several of my formulae cells had again been (when?, search me) converted to values.
- This makes Excel completely unreliable, if this remains pervasive.
- Now, about that file containing the sheet in question:
- There is extensive VBA programming behind it, but the VBA only refers to named ranges to get value, it does NOT change values. (verified)
- There are NO VBA sheet events on that sheet.
- There are no Userform events refering to anything on this sheet.
- The VBA code refers to that sheet only for reading range values i.e. {declared variable x} = range("TotMEB"), VBA does not return a type incompatibillty error, although I fail to see that relevant as it would only be relevant to executing the VBA code and affect the sheet cells.)
Please, no answers of the type "you could simply have VBA calculate the MAX for the range instead of the Excel formula". I have seen that written in the past! If I wanted to do that, I would have done it, duh.
And this is only one example given, I have had other formulae that behave this way from time to time on other sheets, AND in other Workbooks.
The only thing that I can seem to remember peculiar to this is that they are always short formulae, not monster formulae!
Thank you for meditating about this and possibly having some good answers to share!