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.
#48764
Bom dia pessoal,
Estou iniciando agora no VBA e estou fazendo um codigo de cadastro. Porem quando salva a data o excel inverte.
Se colocar 01/10/2019 ele joga na planilha 10/01/2019.

abaixo o código utilizado
se tiver algum bloqueio a senha é 123

Private Sub data_Change()
Dim txt_data As String

txt_data = data.Value

If Len(txt_data) = 8 Then

data.Value = Format(txt_data, "0#""/""##""/""####")
End If

End Sub
Você não está autorizado a ver ou baixar esse anexo.
#48767
Alterei o código do botão inserir na linha de atribuir a data. Usei a função CDate do VBA. 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