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

Dúvidas sobre cálculos, funções simples e aninhadas, fórmulas matriciais, etc.
#64438
Pessoal,
Por gentileza, gostaria de criar um botão, para transportar apenas os dados/valores das colunas apontadas (com seta laranja) para a "Planilha Controle", acima esbocei o que preciso.
Diariamente preencho a planilha de dados e preciso que vá inserindo na linha seguinte da "Planilha Controle"

MELHOR ENTENDIMENTO NO ANEXO.
Controle Valor Aquisição.xlsx
Obrigado.
Você não está autorizado a ver ou baixar esse anexo.
#64440
Experimente:
Código: Selecionar todos
Sub ReplicaDados()
 Dim LR As Long
  Application.ScreenUpdating = False
  LR = Cells(Rows.Count, 6).End(3).Row
  If LR > 2 Then
   Range("B3:F" & LR).Copy
   Sheets("Controle").Cells(Rows.Count, 1).End(3)(2).PasteSpecial xlValues
   Range("J3:J" & LR).Copy
   Sheets("Controle").Cells(Rows.Count, 6).End(3)(2).PasteSpecial xlValues
  End If
End Sub
#64476
O que você escreveu antes ~~~> Transferencia de dados para outra planilha ~~~>é diferente do que você escreveu por último ~~~> Ou seja, trabalharei apenas com 1 (aba) planilha.

substitua as duas linhas abaixo
Sheets("Controle").Cells(Rows.Count, 1).End(3)(2).PasteSpecial xlValues
Sheets("Controle").Cells(Rows.Count, 6).End(3)(2).PasteSpecial xlValues



por estas
Cells(Rows.Count, 12).End(3)(2).PasteSpecial xlValues
Cells(Rows.Count, 17).End(3)(2).PasteSpecial xlValues
ragealgu agradeceu por isso
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