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

Assuntos que não estiverem relacionados as categorias acima. Se não souber em qual categoria sua mensagem se encaixa, envie aqui.
  • Avatar do usuário
#8479
Como criar uma mascara para controle de placas de carro (Ex: EDS-2565), onde seja indiferente digitar as letras em maiúsculo ou minúsculo e o Excel transforme em maiúsculo e não seja preciso digitar o hífen que o sistema coloque-o?

Atualmente eu faço isso em fórmula, mas preciso em mascara.
Avatar do usuário
Por Startec
Posts Avatar
#8484
Segue a opcao em vba
A macro esta ajustada para convertre os dados que forem digitadas na coluna A
Código: Selecionar todos
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub
If Target.Column = 1 Then
If Len(Target) >= 3 Then
Target = UCase(Target)
End If
If Len(Target) >= 3 And Len(Target) <= 7 Then
Target = Left(Target, 3) + "-" + Right(Target, 4)
End If
End If
End Sub
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