Pb tcd vba
Résolu
Bambou9325
Messages postés
6
Date d'inscription
Statut
Membre
Dernière intervention
-
Bambou9325 Messages postés 6 Date d'inscription Statut Membre Dernière intervention -
Bambou9325 Messages postés 6 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
je cherche a créer un tcd avec une plage variable.
J'ai une erreur 1004. la feuille tcd existe déjà
Ci-joint le code:
Sheets("Synthese").Select
Dim LastL As Long
Sheets("Synthese").Select
LastL = Range("A1").End(xlDown).Row
Dim LastC As Long
Sheets("Synthese").Select
LastC = Range("A1").End(xlToRight).Column
ActiveWorkbook.PivotCaches.Create(SourceType:=xlDatabase, SourceData:= _
"Synthese!R1C1:R[" & LastL & "]C[" & LastC & " ]", Version:=xlPivotTableVersion14).CreatePivotTable _
TableDestination:="TCD!R3C1", TableName:="Tableau croisé dynamique10", _
DefaultVersion:=xlPivotTableVersion14
Merci de votre aide :)
je cherche a créer un tcd avec une plage variable.
J'ai une erreur 1004. la feuille tcd existe déjà
Ci-joint le code:
Sheets("Synthese").Select
Dim LastL As Long
Sheets("Synthese").Select
LastL = Range("A1").End(xlDown).Row
Dim LastC As Long
Sheets("Synthese").Select
LastC = Range("A1").End(xlToRight).Column
ActiveWorkbook.PivotCaches.Create(SourceType:=xlDatabase, SourceData:= _
"Synthese!R1C1:R[" & LastL & "]C[" & LastC & " ]", Version:=xlPivotTableVersion14).CreatePivotTable _
TableDestination:="TCD!R3C1", TableName:="Tableau croisé dynamique10", _
DefaultVersion:=xlPivotTableVersion14
Merci de votre aide :)
A voir également:
- Pb tcd vba
- Tcd excel - Guide
- Excel compter cellule couleur sans vba - Guide
- Incompatibilité de type vba ✓ - Forum VB / VBA
- Erreur 13 incompatibilité de type VBA excel ✓ - Forum Excel
- Mkdir vba ✓ - Forum VB / VBA
mais même en mettant n'importe quel nom, l'erreur apparait toujours...
merci