0

I would like to create an array as follows:

Dim vHdr As Variant

vHdr = Array("Jogo", "Sala", "Operadora", "Semana", "NSemana", "Acumulado Semana 3")

However, in "Acumulado Semana 3", the 3 is a variable called semana_atual.

I tried:

vHdr = Array("Jogo", "Sala", "Operadora", "Semana", "NSemana", ""Acumulado & "" - "" & " & semana_atual")

but it didn't work.

1
  • You should tag your question with what this actually is (i.e. what tool or language). Commented May 2, 2013 at 14:45

1 Answer 1

1

What if you try this (for VBA):

vHdr = Array("Jogo", "Sala", "Operadora", "Semana", "NSemana", "Acumulado Semana " & semana_atual)

just you need some order with your quotation marks. (I added 'Semana' referring to what you need, not what you have tried).

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.