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
#35049
Boa noite.
Veja se consegue adaptar à sua necessidade:
(no caso estou lançando o valor numa segunda textbox)
Código: Selecionar todos
Private Sub TextBox1_AfterUpdate()
Me.TextBox2.Text = WorksheetFunction.CountIf(Planilha1.Range("d6:d" & Rows.Count), Me.TextBox1.Text)
End Sub
#35054
consegui através desse código...

Private Sub txtmaterial_Exit(ByVal Cancel As MSForms.ReturnBoolean)

'Verifica se já existe o Material Cadastrado na Planilha Estoque a partir da coluna D6


Dim lngRow As Long

lngRow = fncMatch(Me.txtmaterial.Value, ThisWorkbook.Worksheets("Estoque").Columns("D"))
If lngRow > 0 Then
MsgBox "Material já Cadastrado ", vbCritical

txtmaterial.Value = ""

txtmaterial.SetFocus

Else
'Prosseguir o cadastro





End If
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