troubleshooting Question

How do I add to an array based on a Case?

Avatar of AFGPHXExcel
AFGPHXExcel asked on
Microsoft Excel
6 Comments2 Solutions229 ViewsLast Modified:
Is it possible to set the values for an Array using a Case. For example

Select Case Range("A1").Value
Case B
v_WksNames = Array("RequirementSummary")
Case C
v_WksNames = Array("Reviewer1", "LOJ")

What if the range contains both B and C? Is it possible to make the array v_WksNames = Array("RequirementSummary", "Reviewer1", "LOJ")?
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 2 Answers and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros