Este fórum está sendo desativado

Depois de 9 anos, este fórum será desativado. Mas calma.... estamos migrando para uma comunidade no DISCORD. Junte-se a nós.

ENTRAR PARA DISCORD

Tópicos relacionados a códigos VBA, gravação de macros, etc.
  • Avatar do usuário
Avatar do usuário
Por LeoHenrique
Posts Avatar
#52913
Bom dia a todos !

Pessoal, estou tentando com um loop puxar informações de outra aba, mas não estou conseguindo ! Se alguém puder ajudar, agradeço !
A partir de um inputbox, a macro vai importar todas as referências desse forma base para a aba anterior !


Segue o código abaixo e a planilha exemplo em anexo !

'Apaga Referências que estão na planilha
Sheets("Base").Select
Range("BY5504:BY5513").ClearContents

Dim incluir As Variant
incluir = InputBox("Qual forma base a distribuir ?", "Controle distribuição grade")
'Range("BY5498").Select
'ActiveCell.Value = incluir



'Loop puxa somente sku´s da ref base informada
ultimalinha = Plan5.Cells(Rows.Count, "I").End(xlUp).Row
Lin = 5504
For i = 5504 To ultimalinha

If Plan5.Cells(i, 9) = incluir Then
Plan2.Cells(Lin, 77) = Plan5.Cells(i, 3)
Lin = Lin + 1
End If
Next
Você não está autorizado a ver ou baixar esse anexo.
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]

Estamos migrando para uma comunidade no Discord