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
#17909
Boa tarde!

Tenho a seguinte dúvida e conta com a sua ajuda.

Ná célula da coluna D3 se eu digitar algum dado é possível neutralizar E3 F3 e G3 de modo que não possa receber dados.
Obs. Para as respectivas células da coluna.

Grato - GENECI.
Você não está autorizado a ver ou baixar esse anexo.
#17910
Boa tarde!!

Eu não sei se entendi, mas tente isso.
Código: Selecionar todos
Sub AleVBA_3586()
Dim chCell As Range
    Dim chRng As Range

    ActiveSheet.Unprotect
    Set chRng = ActiveSheet.Range("E3:G3")

    For Each chCell In chRng.Cells
        chCell.Locked = (chCell.Value <> "") 'Se as células E3,F3,G3 for diferende vazio
    Next chCell

    ActiveSheet.Protect
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