Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COWhat if there are a variable number of items in the listbox? This only *kind of* works if there are exactly 3 items. If there are less than 3 items, it will raise error `9 Subscript out of Range`. If there are more than 3 items, it requires additional variable declaration, concatenation, conditional statement for each potential listbox item, etc. Additionally, it could yield ugly strings like `, , z` or `, y, `.
      singulars
    2. COLike I mentioned, this was a really quick and basic example that I just put together. The question was very specific to 9 list items, and it's very possible that the item being selected in the list box needs to return a completely different string altogether. For instance, if the list item says "NSF" and the sentence returned needs to say "the check was returned for non-sufficient funds", which it sounds like this may be possible, and that this individual is writing a mail merge to send letters out for returned checks. Just speculation. Anyway, I like your solution, it's a good function.
      singulars
    3. COI think it may be a little much for the user to understand depending on the skill level, so maybe a breakdown would be good. It sounds like the asker is fairly new at this and is obviously trying to learn, which is great, but he/she may need a little more of a detailed and descriptive response. Another option instead of an array could be a collection, which I remember preferring over arrays in vba. I remember being irritated with having to re-dimension the array to the exact size of the array. I rarely work with vba anymore and I'm a little rusty.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload