harolda1980
Gebruiker
- Lid geworden
- 7 aug 2007
- Berichten
- 488
ol1 tot ol13 staan verschillende prijzen en in de draaitabel wil ik de hoogste waarden ophalen. Hoe is dit?
ol1 tot ol13 zijn kolommen in het databestand!
ol1 tot ol13 zijn kolommen in het databestand!
Code:
With .CalculatedFields.Add("Hoogste waarden", "='0L1'+'0L2'+'0L3'+'0L4'+'0L5'+'0L6'+'0L7'+'0L8'+'0L9'+'0L10'+'0L11'+'0L12'+'0L13'")
.Orientation = xlDataField
.Position = 3
.NumberFormat = "#,##0.00"
.Caption = "Hoogste waarden"
.Function = xlMax
End With