Voici mon soucis , Dans un boite de dialogue , j'ai crée un onglet valider ,
mon objectif c'est quand je clique sur le bouton valider , mon processing se met en marche ,
j'y arrive tjs pas , pourtant mon code me semble correcte . est ce que qq peut m'aider .
voici un extrait de mon code
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Sub StartProcessing1()
    Dim IngTotal As Long, Ingl As Long
    Load frmProgressBar
    With frmProgresseBar
        .ProgressBar.Scrolling = ccScrollingStandard
        .Show
    End With
    'UpdateProgressBar 0 , "Chargement...."
    IngTotal = 2000
    For Ingl = 1 To InglTotal
        If Ingl Mod 50 + 0 Then
        UpdateProgressBar Ingl / InglTotal * 100, "Chargement " & Format(Ingl / InglTotal, "0%") & "..."
        End If
    'Range("D1").Formula = Format(Time, "hh:mm"ss")
    'Next Ingl
    'Range ("D1").ClearContents
    frmProgressBar.Hide
    Unload frmProgressBar
End Sub
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
Private Sub ProgressBar1_Click()
    With frmProgressBar
        If Not IsMissing(NewCaption) Then .Caption = NewCaption
        .ProgressBar.Value = NewValue
        If NewValue = 0 Then .Repaint
    End With
End Sub
Je recapitule , au moment ou je clique sur le boutton Valider , je veux que le process de chargement se met en route
merci