Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there an easier way
Message
From
23/06/2002 09:03:47
John Baird
Coatesville, Pennsylvania, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Is there an easier way
Miscellaneous
Thread ID:
00671465
Message ID:
00671465
Views:
45
to do this.
WITH .Parent.Styles("Cell")
			.Borders(xlEdgeTop).LineStyle	 = xlContinuous
			.Borders(xlEdgeLeft).LineStyle 	 = xlContinuous
			.Borders(xlEdgeRight).LineStyle  = xlContinuous
			.Borders(xlEdgeBottom).LineStyle = xlContinuous
		ENDWITH

		**-- set all cells with borders
		FOR lnI = 1 TO .usedRange.columns.count
			FOR lnJ = 1 TO .UsedRange.rows.count				lcRange = [.Range("] + CHR(lnI + 64) + ALLTRIM(STR(lnj)) + [").Style = "Cell"]
				&lcRange
			ENDFOR
		ENDFOR
Next
Reply
Map
View

Click here to load this message in the networking platform