Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel automation
Message
From
31/07/1998 09:56:26
 
 
To
30/07/1998 02:20:19
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00122611
Message ID:
00123036
Views:
19
Hi
Here is a quick way to figure out the value of any Excel constant:
1.Start Excel
2.Create new macro
3.Edit created macro with VBA Editor
4.type the following code
ActiveSheet.Cells(1, 1).Value = xlEdgeBottom
ActiveSheet.Cells(1, 2).Value = xlMedium
ActiveSheet.Cells(1, 3).Value = xl*
etc.
5.Run the macro.Values of the constantns will be placed into spreadsheet.

HTH,
Pavel.

>Now I want to do some borders formating. Macro language says that I have to apply something like:
>
>with app.activeworkbook.activesheet.range("a1:c50").borders(xlEdgeBottom)
> .linestyle=xlContinuous
> .weight=xlMedium
> .ColorIndex=xlAutomatic
>endwith
>
>
>I need some information about Excel constants definition (xlContinuous,xlMedium,xlAutomatic,....xl*).
Previous
Reply
Map
View

Click here to load this message in the networking platform