If I have 2 identical sized arrays and if a condition is true then I want to always get values from one array and if the condition false from the other array, can some pointer be set to handle this using one array name and not test for every assignment if true or false? all arrays below defined as variants For example the direct method: If condition=true then x=array1(a,b) else x=array2(a,b) end if will this work or some similar concept: if condition =true then set usedarray=array1 else set usedarray=array2 end if then every assignment becomes x=usedarray(a,b)
-- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------------------------------------ To post to this group, send email to excel-macros@googlegroups.com