Sub test()
Dim Tdc As New clsTdcRD
Sheets("Data").UsedRange = Sheets("Data").UsedRange.Value
Tdc.CreerTableau ActiveWorkbook, "Data!" & Sheets("Data").UsedRange.Address, "TDC", "Data"
Tdc.NewPivotTables "Qualification", TypeFiltre
Tdc.NewPivotTables "Motif", TypeFiltre
Tdc.NewPivotTables "Affecté à", Typeligne
Tdc.NewPivotTables "Services", Typeligne
Tdc.NewDataField "CA", Somme
Tdc.AfficheTotal True, True
Tdc.Style PivotStyleMedium9
If Tdc.FiltreTypeFiltre("Qualification", "Développement ") = False Then MsgBox "Pastrouvé"
If Tdc.FiltreTypeFiltre("Motif", "Commercial ") = False Then MsgBox "Pastrouvé"
End Sub
Sub Test2()
Dim D As New clsTdcRD
D.CopyTdc Sheets("TDC"), "TDC", Sheets("Feuil1"), "toto"
D.TdcExistant Sheets("Feuil1"), "toto"
D.DataSource Sheets("Data").Range("A1").CurrentRegion
End Sub