I am writing a Visual Basic Excel Application that needs to run in both Windows 7 and Mac OS 10.
The program runs fine on Windows. I am stymied by one error. The CHR function is not recognized in the Mac.
I have tried CHR, CHAR with no avail. I tried it in two different Macs.
Please advise what I can do.
Additional information
- The original VB Excel Macro was developed under Windows 7 and Excel 2010
- Trying to run the same Macro in a Mac running OS 10.8 is where I saw the issue
- The Mac version of Excel is Excel 2011 Version 14.3.5
'The CHAR function works in Excel in regular excel program in the MAC. But from Visual Basic
CHR, CHAR,
WorksheetFunction.CHAR,
WorksheetFunctionCHR,- none of these worked.
Since I had only a couple of references to this function, I wrote the ASCII table in a different worksheet and did a search to keep me going, effectively doing the same function. I have seen a similar problem
with LOWER function as well. It seems I have problem with a few Excel built in functions when running from VB Excel.
Any help will be welcome, because this is a huge productivity impact.