Liens externes avec Excel 4.0 Macros

Bonjour, je tente d'utiliser la fonction LINKS() pour obtenir la liste des liens externes du classeur excel (sans macro) mais cela ne fonctionne pas. Peut être est-ce un autre nom de formule ?

Merci d'avance

Bonjour,

Il y a ça dans l'aide :

LINKS

LINKS Returns, as a horizontal array of text values, the names of all workbooks referred to by external references in the workbook specified. Use LINKS with OPEN.LINKS to open supporting workbooks. Syntax LINKS(document_text, type_num) Document_text is the name of a workbook, including its path. If document_text is omitted, LINKS operates on the active workbook. If the workbook specified by document_text is not open, LINKS returns the #N/A error value. Type_num is a number from 1 to 6 specifying the type of linked workbooks to return. Type_num Returns

1 or omitted

Microsoft Excel link

2

DDE/OLE link (Microsoft Excel for Windows)

3

Reserved

4

Not applicable

5

Publisher (Microsoft Excel for the Macintosh)

6

Subscriber (Microsoft Excel for the Macintosh)

Remarks

 If the active workbook contains no external references, LINKS returns the #N/A error value.

 With the INDEX function, you can select individual workbook names from the array for use in other functions that take workbook names as arguments.

The names of the workbook are always returned in alphabetic order. If supporting workbooks are open, LINKS returns the names of the workbooks; if supporting workbooks are closed, LINKS includes the full path of each workbook.

 If type_num is 5 or 6, LINKS returns a two-row array in which the first row contains the edition name and the second row contains the reference.

Examples

If a chart named Chart1 is open and contains links to workbook Data1 and Data2, and the LINKS function shown below is entered as an array into a two-cell horizontal range: LINKS("Chart1") equals "Data1" in the first cell of the range and "Data2" in the second cell. In Microsoft Excel for Windows, if the chart named VARIANCE.XLS is open and contains data series that refer to workbook named BUDGET.XLS and ACTUAL.XLS, then: OPEN.LINKS(LINKS("VARIANCE.XLS")) opens BUDGET.XLS and ACTUAL.XLS. In Microsoft Excel for the Macintosh, if the workbook named SALES 1991 is open and contains references to the workbook WEST SALES, SOUTH SALES, and EAST SALES, then: OPEN.LINKS(LINKS("SALES 1991")) opens WEST SALES, SOUTH SALES, and EAST SALES.

Related Functions

CHANGE.LINK Changes supporting workbook links

GET.LINK.INFO Returns information about a link

OPEN.LINKS Opens specified supporting workbook

UPDATE.LINK Updates a link to another workbook

Daniel

Bonjour,
Merci de préciser la version Excel utilisée dans ton profil ?
Cdlt.

Profil modifié. Office 365 version french

Merci Daniel. Ces noms sont en anglais et la question est : est-ce les mêmes fonctions en français ? car avec LINKS() cela ne fonctionne pas...

Oups. En français, c'est LIAISONS. (Ceci dit, je' l'ai trouvé par tâtonnements, je n'ai pas LA liste)

Daniel

Bonjour,
Une piste, mais le fichier doit être enregistré en xlsm.
Voir aussi les options macros.
Cdlt.

C'est curieux, en utilisant LIAISONS, pas besoin de modifier les paramètres des macros :

capture d ecran 2023 09 01 155557 capture d ecran 2023 09 01 155443 capture d ecran 2023 09 01 155218

Re,
J'ai peut-être certainement écrit une c******e pour le xlsm.
Cdlt.

Impec avec Liaisons. Merci à tous ! Et oui, il faut enregistrer en *.xlsm

Re,
Merci de ce retour.
Cdlt.

Rechercher des sujets similaires à "liens externes macros"