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
  • Avatar do usuário
Por tonilanis
Posts
#4561
Como posso fazer para que um (ou mais) determinado(s) intervalos de células de uma planilha fiquem em caixa alta automaticamente ao ser digitado, ou seja: Sendo este intervalo preenchido com texto, este texto fique em caixa alta.
Grato por qualquer ajuda.
Avatar do usuário
Por wallacethiago
Posts Avatar
#4562
Amigo irei lhe enviar um tutorial bem explicadinho para resolver o seu problema, tem algumas maneiras para se resolver isso.


Att,
Você não está autorizado a ver ou baixar esse anexo.
Avatar do usuário
Por alexandrevba
Avatar
#4563
Boa tarde!!

um exemplo seria
Código: Selecionar todos
Sub AleVBA_799()
    Dim Rng As Range
    Dim c As Range
    On Error Resume Next
    Set Rng = Cells.SpecialCells(xlCellTypeConstants, 2)
    For Each c In Rng
        c.Value = UCase(c.Value)
    Next c
End Sub
Forma de ter um catilho automatico em intervalos não continguos.
Código: Selecionar todos
Private Sub Worksheet_Change(ByVal Target As Range)
'Insira esse código dentro de um módulo de planilha
    If Intersect(Target, Range("A1:B5, D6:F10, I1:K2")) Is Nothing Then Exit Sub
    Application.EnableEvents = False
    Target.Value = UCase(Target.Value)
    Application.EnableEvents = True
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