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.
#55704
Não entendi. Se eu escolher Referência EA3, Tipo Célula e digitar 2, ao clicar em Confirmar você deseja que a célula que está 3 seja subtraída do valor 2 digitado?
#55756
Código: Selecionar todos
Private Sub Confirmar_Click()
    Dim vrtLinha    As Variant
    Dim loTabela     As ListObject
    
    Set loTabela = wshMenu.ListObjects("Tabela2")
    
    With loTabela
        wshMenu.Range("XFD1").Formula2Local = "=CORRESP(""" & Requisicao.Ref.Value & _
                                                            Requisicao.Tipo.Value & _
                                                            """;Tabela2[Refer?ncia]&Tabela2[Tipo];0)"
        vrtLinha = wshMenu.Range("XFD1").Value2
        wshMenu.Range("XFD1").Value2 = vbNullString
        
        If VBA.IsNumeric(vrtLinha) Then
            If VBA.CLng(Requisicao.Quant.Value) > .DataBodyRange(vrtLinha, 3).Value2 Then
                VBA.MsgBox "A quantidade solicitada e maior que o estoque"
                Exit Sub
            End If
            .DataBodyRange(vrtLinha, 3).Value2 = .DataBodyRange(vrtLinha, 3).Value2 - Requisicao.Quant.Value
        End If
    End With
End Sub
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