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

Utilize essa sessão para postar e solucionar desafios de Excel, matemáticos, lógicos, etc...
  • Avatar do usuário
Avatar do usuário
Por JairJunior2
Posts Avatar
#41945
Boa tarde!

Preciso de um código Vba que quando eu lançar nas colunas "R$ compra", as colunas "data" preencham automáticas a data de "hoje". EX: se eu lançar em "B3" o valor de "R$10,00", "C3" preenche "14/03/19".
Você não está autorizado a ver ou baixar esse anexo.
#41958
Código: Selecionar todos
Private Sub Worksheet_Change(ByVal Target As Range)
 If Target.Count > 1 Then Exit Sub
 If Cells(2, Target.Column) = "R$ Compra" Then
  If Target.Value <> "" Then
   Target.Offset(, 1).Value = Date
  Else: Target.Offset(, 1).Value = ""
  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