Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6968417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:26:56+00:00 2026-05-27T16:26:56+00:00

I have an number of arrays: mIOSconfig = Array( ! *** SRMS *** ,

  • 0

I have an number of arrays:

mIOSconfig = Array("  ! *** SRMS ***  ", "int *** PORT ***")
mCATOSconfig = Array("  ! *** SRMS ***  ", "set port name *** DESC *** *** PORT ***   ")

and I want to call these using external user input.

So assuming the user inputs “IOS” I want to use the mIOSconfig in future code.

So let’s supose the user’s input is stored in variable x.

 x="IOS"
    usedarray = "m" + x + "config"

somevarible = somefunction(usedarray)

msgbox (somevarible)

But this doesn’t work as the usedarray variable is a string and this is passed to the function not the array. How can I used the created usedarray varible to pass the array created at the start to the function?

Cheers

Aaron

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T16:26:57+00:00Added an answer on May 27, 2026 at 4:26 pm

    As a workaround, you could use a collection to do what you want. Create a Collection object and .Add the arrays to the collection using “IOS”, “CATOS”, etc. as keys to the collection.

    As @Justin pointed out in his comment, what you are specifically trying to do is not supported by VBA.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a number of string arrays. The string in every array are ordered
I have a decimal number (let's call it goal ) and an array of
I have an array of integers: int[] number = new int[] { 2,3,6,7 };
I have a 2d array with rows containing an id number, a name string,
I have a number of one dimension arrays of Object[] (these objects are primitive
I have a number of very long arrays. No run-time sort is possible. It
Let's suppose I have n arrays, where n is a variable (some number greater
Say I have an array of number a <- c(1,2,3,6,7,8,9,10,20) if there a way
I have a simple array with x number of items. I am displaying them
I have a 2 dimensional array forming a table: [color][number][shape ] ------------------------- [black][10 ][square

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.