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.
Por Pecchiai
#44078
Bom dia a todos,
Sou novo aqui e no Excel com relação a macro. Estou fazendo uma macro em que não posso deixar a coluna D em branco, o código que fiz até agora consiste na entrada da célula mas eu preciso que ele faça isso na saída. O código segue abaixo, agradeço pela atenção de todos.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim Coluna As Integer, Linha As Integer

Coluna = Target.Column
Linha = Target.Row

If Coluna = 4 And Linha >= 6 Then

If IsEmpty(Range(Target.Address)) Or Range(Target.Address) = " " Then
MsgBox "Célula não pode ficar em branco"
End If

End If

End Sub
Por babdallas
#44179
Veja se atende.
Você não está autorizado a ver ou baixar esse anexo.
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