Notifications
Clear all

Formatar Células

3 Posts
2 Usuários
0 Reactions
791 Visualizações
(@miguel-70)
Posts: 0
New Member
Topic starter
 

Ola!
Como acrescentar mais 20 Células abaixo nesta macro?

Sub Formatar_Coluna()'ate aqui tudo certo.
Range("A9:A" & Range("A" & Cells.Rows.Count).End(xlUp).Row).NumberFormat = "h:mm;@"
End Sub

Obrigado

 
Postado : 23/04/2015 8:44 am
(@wagner-morel-vidal-nobre)
Posts: 4063
Famed Member
 

Miguel 70,

Boa Tarde!

Assim:

Sub Formatar_Coluna()'ate aqui tudo certo.
Dim UltimaLinha As Long
UltimaLinha = ActiveSheet.Cells(Cells.Rows.Count, 1).End(xlUp).Row + 20
Range("A9:A" & UltimaLinha).NumberFormat = "h:mm;@"
End Sub
 
Postado : 23/04/2015 9:22 am
(@miguel-70)
Posts: 0
New Member
Topic starter
 

Obrigado Wagner Morel, resolvido.

 
Postado : 23/04/2015 10:27 am