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
Por Super385011
Posts
#17675
Boa Noite

Criei esta planilha baseado em videos do youtube mas não consegui fazer algumas macro e gostaria de ajuda para resolver
Aqui esta a planilha https://www.sendspace.com/file/10pt5nl
O que estou querendo fazer esta na planilha com o nome de Fechamento. Gostaria que os códigos e valores iguais que se somem, e que possa gerar um relatório somente desta planilha com o nome seja a data atual.
#17679
Bom dia!!

Porque não usar uma Tabela Dinâmica para isso?

Att
#17684
Boa trade!!

Use o Gravador de Macro.
Código: Selecionar todos
Sub Macro1()
'
' Macro1 Macro
'

'
    Range("L:M").Delete
    Range("A1").Select
    ActiveWorkbook.PivotCaches.Create(SourceType:=xlDatabase, SourceData:= _
        "Fechamento!R1C1:R9C4", Version:=6).CreatePivotTable TableDestination:= _
        "Fechamento!R1C12", TableName:="PivotTable1", DefaultVersion:=6
    Sheets("Fechamento").Select
    Cells(1, 12).Select
    With ActiveSheet.PivotTables("PivotTable1").PivotFields("codigo")
        .Orientation = xlRowField
        .Position = 1
    End With
    ActiveSheet.PivotTables("PivotTable1").AddDataField ActiveSheet.PivotTables( _
        "PivotTable1").PivotFields("quantidade"), "Sum of quantidade", xlSum
End Sub
Att
#17687
Agora somou tudo mas preciso que os valores em dinheiro seja separado com a quantidade de cada um que foi vendido
o código 657 tem o valor de R$ 5,20 e o de R$ 6,00 como posso separa-los
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