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
#13658
Olá Pessoal,
Preciso criar uma base de Dados do arquivo anexo, ou seja, preciso excluir as colunas e linhas vazias da mesma forma o cabeçario que se repete, esse arquivo é gerado de um outro sistema, não tendo uma formatação de exportação adequada para minha necessidade
Abraço.
Você não está autorizado a ver ou baixar esse anexo.
#13660
Boa tarde!!

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

'
    Rows("1:5").Select
    Selection.Delete Shift:=xlUp
    Cells.Select
    ActiveWorkbook.Worksheets("TesteColaborador").Sort.SortFields.Clear
    ActiveWorkbook.Worksheets("TesteColaborador").Sort.SortFields.Add Key:=Range( _
        "B2:B972"), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:= _
        xlSortNormal
    With ActiveWorkbook.Worksheets("TesteColaborador").Sort
        .SetRange Range("A1:AB972")
        .Header = xlYes
        .MatchCase = False
        .Orientation = xlTopToBottom
        .SortMethod = xlPinYin
        .Apply
    End With
    Range("A1:AB660").Copy Plan2.Range("A" & Rows.Count).End(xlUp)(2)
End Sub
Att
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