Excel : triturage des data

Résolu
cs_Bzz Messages postés 25 Date d'inscription jeudi 25 avril 2002 Statut Membre Dernière intervention 11 février 2005 - 10 févr. 2005 à 09:34
cs_Bzz Messages postés 25 Date d'inscription jeudi 25 avril 2002 Statut Membre Dernière intervention 11 février 2005 - 10 févr. 2005 à 14:45
plop plop,
voila, j'ai une tite moulinette qui exporte mes data access vers une feuille excel ligne/ligne.

Y a t'il un moyen de fusionner les cellules, changer la police, l'orientation du texte etc via vb?

2 réponses

Diegoch Messages postés 56 Date d'inscription vendredi 30 mars 2001 Statut Membre Dernière intervention 7 septembre 2011 6
10 févr. 2005 à 13:56
'fusionner les cellules

Range("A1:A4").Merge

'changer la police d'une cellule selectionnée

With Selection.Font
.Name = "Comic Sans MS"
.Size = 10
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
End With

'l orientation du texte de la cellule F10
Range("F10").Select
With Selection
.HorizontalAlignment = xlRight (ou xlCenter ou xlLeft)
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.AddIndent = False
.ShrinkToFit = False
.MergeCells = False
End With

Je pense que tu trouvera les differentes valeurs des propriétés dans l aide

Bonne utilisation...
3
cs_Bzz Messages postés 25 Date d'inscription jeudi 25 avril 2002 Statut Membre Dernière intervention 11 février 2005
10 févr. 2005 à 14:45
mici :)
0
Rejoignez-nous