JenniferMurphy
Well-known Member
- Joined
- Jul 23, 2011
- Messages
- 2,687
- Office Version
- 365
- Platform
- Windows
In the minisheet below, I get a #VALUE error for the call to my GetFormula UDF that I have used for years. In an attempt to identify the error, I added a breakpoint.
It never got called. I wondered if in my migration of files from my old Win 10 laptop to my new Win 11 laptop, I might have made another copy of my add-in module which is where these UDFs are stored. But then I added a call to my GetFormat UDF which is right next to the GetFormula UDF in the same add-in module. That breakpoint was executed.
Why would one UDF in the same add-in module get executed and another one not? Is there a way I can find out what module the code is calling?
I ran several searches for "getformula(" in all of the active modules and got no hits.
I also found it puzzling that the call to GetFormula insisted on mixed case (that matches the declaration in the add-in module), but the call to getformat insists on all lower case, which does not match the declaration.
It never got called. I wondered if in my migration of files from my old Win 10 laptop to my new Win 11 laptop, I might have made another copy of my add-in module which is where these UDFs are stored. But then I added a call to my GetFormat UDF which is right next to the GetFormula UDF in the same add-in module. That breakpoint was executed.
Why would one UDF in the same add-in module get executed and another one not? Is there a way I can find out what module the code is calling?
I ran several searches for "getformula(" in all of the active modules and got no hits.
I also found it puzzling that the call to GetFormula insisted on mixed case (that matches the declaration in the add-in module), but the call to getformat insists on all lower case, which does not match the declaration.
Cell Formulas | ||
---|---|---|
Range | Formula | |
C5 | C5 | =1+2 |
D5 | D5 | =GetFormula(C5) |
E5 | E5 | =getformat(C5) |