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
#70040
Olá

Crie um comando para salvar uma planilha, mas não estou sabendo deixar ele fixo na planilha e do jeito que fiz aparece como um pop up, e deste ficou ruim, pois vou precisar salvar a planilha após a atividade estiver concluída.

Imagem

Ou questão, Como bloquear a digitação de algumas colunas, pois forma que fiz, está por coluna por coluna .


Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Column =3 Then
If Target.Row >=4 Then
Beep
Cell(Target.Row, Target.Column).Offset(0,1).Select
End if
End if

End Sub


Grato
Você não está autorizado a ver ou baixar esse anexo.
#70043
Estou fazendo uma por uma, tem outra forma de escrever a função adicionar todas as colunas de uma vez ?



Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Column = 3 Then
If Target.Row >= 43 Then
Beep
Cells(Target.Row, Target.Column).Offset(0, 1).Select
End If
End If

If Target.Column = 6 Then
If Target.Row >= 43 Then
Beep
Cells(Target.Row, Target.Column).Offset(0, 1).Select
End If
End If


If Target.Column = 11 Then
If Target.Row >= 4 Then
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