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)); |
Partager