Have beginning to moderate Excel VBA programming skill attempting to share code across older 32 bit and 64 bit Windows 10 and emulated Office 365 Windows on Mac: where one platform doesn't recognize the recent Dynamic Array additions of "{ }" (multi-cell array) and "@" (implicit intersection operator), and another platform doesn't recognize the "Cells.Replace" command with the Formula2 construct, but am using "Indirect" and "&" (concatenate) for variables with unique identifiers (where standard lookup function fails), but Excel is treating them as an array. The Formula2 is needed in one platform (Mac skips the instruction), the other does not even compile with it (stops altogether), and without it the macro code crashes (Mac has to "read" formulas on the sheet to retrieve a value, not from a declared variable due to its sandbox issues). I'm attempting a precompile inquiry to get around the error test as shown, but it fails. Suggestions for a precompile test to stop Excel from automatically adding curly braces "{}" or at symbols "@"?
#If IsError(Cells.Replace What:=WhatNow, Replacement:=Whatzit, LookAt:=xlPart, FormulaVersion:=xlReplaceFormula2) Then
Office 365 Windows 10? How are you doing that? I don't have a Mac to test. I'll do some more research.