Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Databars In Excel 2007
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01446196
Message ID:
01446201
Views:
58
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform