Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Auto excel borders
Message
From
26/02/2013 02:46:40
 
 
To
25/02/2013 06:57:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01566801
Message ID:
01566915
Views:
72
thanks peter. tried the macro route and tinkered with it a couple of hours before i gave up.
appreciate your suggestion.

k
>how about this from excel marcro recorder:
>
>
>
>WITH oExcel 
>    .Range("C7:G13").Select
>    .Selection.Borders(xlDiagonalDown).LineStyle = xlNone
>    .Selection.Borders(xlDiagonalUp).LineStyle = xlNone
>    .Selection.Borders(xlEdgeLeft).LineStyle = xlNone
>    .Selection.Borders(xlEdgeTop).LineStyle = xlNone
>    With .Selection.Borders(xlEdgeBottom)
>        .LineStyle = xlContinuous
>        .ColorIndex = 0
>        .TintAndShade = 0
>        .Weight = xlThin
>    EndWith
>    .Selection.Borders(xlEdgeRight).LineStyle = xlNone
>    .Selection.Borders(xlInsideVertical).LineStyle = xlNone
>    .Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
>    .Selection.Borders(xlDiagonalDown).LineStyle = xlNone
>    .Selection.Borders(xlDiagonalUp).LineStyle = xlNone
>    With .Selection.Borders(xlEdgeLeft)
>        .LineStyle = xlContinuous
>        .ColorIndex = 0
>        .TintAndShade = 0
>        .Weight = xlMedium
>    EndWith
>    With .Selection.Borders(xlEdgeTop)
>        .LineStyle = xlContinuous
>        .ColorIndex = 0
>        .TintAndShade = 0
>        .Weight = xlMedium
>    EndWith
>    With .Selection.Borders(xlEdgeBottom)
>        .LineStyle = xlContinuous
>        .ColorIndex = 0
>        .TintAndShade = 0
>        .Weight = xlMedium
>    EndWith
>    With .Selection.Borders(xlEdgeRight)
>        .LineStyle = xlContinuous
>        .ColorIndex = 0
>        .TintAndShade = 0
>        .Weight = xlMedium
>    EndWith
>    .Selection.Borders(xlInsideVertical).LineStyle = xlNone
>    .Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
>ENDWITH
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform