Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Put a background color inside Excel ??
Message
From
08/04/2002 04:32:53
 
 
To
08/04/2002 03:28:33
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00642053
Message ID:
00642062
Views:
16
Hi,
The following generates a list of colorindex values and sets the background to the corresponding color:
o = CREATEOBJECT("excel.application")
o.Workbooks.Add()

FOR i = 1 TO 56
   o.ActiveSheet.cells(i,1).value = i
   o.ActiveSheet.cells(i,1).Interior.ColorIndex = i
ENDFOR &&* i = 1 TO 56

o.visible = .t.
You could also use the color property. The easiest way to explore VBA is to record a macro in Excel and then examine the generated code. VBA makes extensive use of constants. You can use the VBA object browser to get the values of these constants. If you're using VFP7, then you can use VFP's object browser.

HTH
>Hi,
>
>i know that way can put a Single Under Line in Excel
>CELLS(??).Borders(9).LineStyle = 1
>
>how can i put the background color in it ( and the code of COLOR TABLE) ?
Daniel
Previous
Reply
Map
View

Click here to load this message in the networking platform