Home

working with new Dynamic Array excel and VBA

%3CLINGO-SUB%20id%3D%22lingo-sub-811398%22%20slang%3D%22en-US%22%3Eworking%20with%20new%20Dynamic%20Array%20excel%20and%20VBA%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-811398%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20model%20that%20I%20support%20that%20uses%20vba%20to%20error%20proof%20the%20document%20and%20reinsert%20formulas%20to%20restore%20defaults%20and%20things%20of%20that%20nature.%20Some%20the%20the%20new%20spill%20functionality%20is%20causing%20problems%20with%20the%20way%20the%20model%20is%20structured.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20added%20if%20statements%20into%20the%20vba%2C%20to%20select%20whether%20to%20insert%20the%20version%20of%20the%20formula%20set%20up%20for%20dynamic%20array%20aware%20excel%20and%20another%20version%20for%20older%20excel.%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EIf%20Application.Build%20%26gt%3B%2011726%20Then%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E.Value2%20%3D%20%22%3DIFERROR(%40CHOOSE(MATCH(%40OperatingExpenseUnit%2CExpUnitTypeId%2C)..............%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3EElse%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E.Value2%20%3D%20%22%3DIFERROR(CHOOSE(MATCH(OperatingExpenseUnit%2CExpUnitTypeId%2C)..............%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3EEnd%20If%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20I%20am%20realizing%20though%20is%20that%20the%20functionality%20is%20not%20consistent%20across%20builds%20of%20excel.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20guess%20the%20problem%20is%20that%20I%20have%20seen%20versions%20of%20Build%2011726%20that%20do%20not%20have%20dynamic%20arrays%20and%20others%20that%20do%20have%20them%2C%20so%20my%20question%20is%3A%20Is%20there%20a%20better%20way%20to%20check%20for%20the%20dynamic%20array%20functionality%20rather%20than%20using%20the%20application.build%20syntax%3F%26nbsp%3B%20%26nbsp%3B%20The%20reason%20it%20is%20becoming%20problematic%20is%20that%20we%20sell%20this%20model%20to%203rd%20parties%20who%20maintain%20their%20office%20subscriptions%20separately%20within%20their%20organizations.%20Right%20now%20about%205%20of%20our%20100%2B%20accounts%20are%20having%20issues%2C%20while%20others%20aren't%2C%20and%20I%20am%20hoping%20to%20find%20a%20solution%20that%20will%20address%20this%20for%20all%20of%20our%20accounts.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-811398%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMacros%20and%20VBA%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
chayes_redIQ
Occasional Visitor

I have a model that I support that uses vba to error proof the document and reinsert formulas to restore defaults and things of that nature. Some the the new spill functionality is causing problems with the way the model is structured. 

 

I added if statements into the vba, to select whether to insert the version of the formula set up for dynamic array aware excel and another version for older excel.    

 

If Application.Build > 11726 Then
.Value2 = "=IFERROR(@CHOOSE(MATCH(@OperatingExpenseUnit,ExpUnitTypeId,)..............
Else
.Value2 = "=IFERROR(CHOOSE(MATCH(OperatingExpenseUnit,ExpUnitTypeId,)..............
End If

 

What I am realizing though is that the functionality is not consistent across builds of excel. 

 

I guess the problem is that I have seen versions of Build 11726 that do not have dynamic arrays and others that do have them, so my question is: Is there a better way to check for the dynamic array functionality rather than using the application.build syntax?    The reason it is becoming problematic is that we sell this model to 3rd parties who maintain their office subscriptions separately within their organizations. Right now about 5 of our 100+ accounts are having issues, while others aren't, and I am hoping to find a solution that will address this for all of our accounts.  

 

Related Conversations