Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

153
Visualizações
Insert numbered cells + row based on cell value

I have managed to insert rows based on cell value for instance if A1 cell is 20, I run the macro, 20 rows appear under A1, those rows are blank right, I need the 20 new cells below A1 to be number 1 to 20 ( the number in A1) let me know if possible.

Cheers Adrien

about 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

Try this:

Sub counter()
Dim i as integer
for i = 2 to cells(1, 1) + 1
    cells(i, 1) = i - 1
next i
End Sub
about 4 years ago · Santiago Trujillo Relatório

0

it tells me "type missmatch"

I have put a 2 pictures attached maybe to make myself clearer

[Step 1][1] [1]: https://i.stack.imgur.com/TrvZx.jpg [Step 2][2] [2]: https://i.stack.imgur.com/D044V.jpg

Thanks a lot

about 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda