Bonsoir
Suite a cette discution j'ai continue la recherche sur la fonction de changement de type de coordonnees de cellules Excel exemple L1C1, A1, $A$1 .....
le code
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 
// la fonction donnee dans l'aide Excel
//Address(RowAbsolute, ColumnAbsolute, ReferenceStyle, External, RelativeTo)
Variant a = vWorksheet.OlePropertyGet("Cells", 5, 5);
String variable_formula;
 
//soit
//variable_formula = a.OlePropertyGet("Address"); // $A$1
//soit
//variable_formula = a.OlePropertyGet("Address", false); // $A1
//soit
//variable_formula = a.OlePropertyGet("Address", false, false); // A1
//soit
//variable_formula = a.OlePropertyGet("Address", false, false, -4150); // R1C1 ou L1C1
//soit
variable_formula = a.OlePropertyGet("Address", false, false, -4150, false, (vWorksheet.OlePropertyGet("Cells", 8, 8))); // R[-2]C[-2]
 
//affichage pour verification
vWorksheet.OlePropertyGet("Cells", 1, 1).OlePropertySet("Value", StringToOleStr(variable_formula));