Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing size of Cells in Excel
Message
De
07/03/2002 09:49:03
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
07/03/2002 09:38:52
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00629545
Message ID:
00629557
Vues:
9
>Hi,
>
>Does any one know how to change the size (Length) of cells in Excel using remote objects? Help on MSDN talks more about the VB.

You can't change the width of an individual cell, only of a column.

Sample code:
with This.oSheet
	.Cells(1,1).ColumnWidth = 6
	.Cells(1,2).ColumnWidth = 30
	.Cells(1,3).ColumnWidth = 8
	.Cells(1,4).ColumnWidth = 30
	.Cells(1,5).ColumnWidth = 7
	.Cells(1,6).ColumnWidth = 9
	.Cells(1,7).ColumnWidth = 10
	.Cells(1,8).ColumnWidth = 13
	.Cells(1,9).ColumnWidth = 9
	endwith
HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform