Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Databars In Excel 2007
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01446196
Message ID:
01446201
Vues:
57
This message has been marked as the solution to the initial question of the thread.
>Hi all
>I am trying to "translate" the VBA created by a macro in Excel 2007 to produce DataBars.
>However I am running into problems on the MinPoint & MaxPoint lines
>
>
>
>   Range("B4:B8").Select
>    With Selection.FormatConditions(1)
>        .MinPoint.Modify newtype:=xlConditionValueLowestValue
>        .MaxPoint.Modify newtype:=xlConditionValueHighestValue
>    End With
>    With Selection.FormatConditions(1).BarColor
>        .Color = 8700771
>        .TintAndShade = 0
>    End With
>
>
>Any ideas how these can be represented in Foxpro?
>TIA
>Kevin
*** Assume that oExcel is your reference to Excel.Application
oExcel.Range("B4:B8").Select
With oExcel.Selection.FormatConditions(1)
     .MinPoint.Modify(1) && xlConditionValueLowestValue
     .MaxPoint.Modify(2) && xlConditionValueHighestValue
EndWith
With oExcel.Selection.FormatConditions(1).BarColor
     .Color = 8700771
     .TintAndShade = 0
EndWith
NOT TESTED!
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform