Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Macro Excel 4.0

12 réponses
Avatar
Killian2801
Bonjour,

Je souhaiterais recourir à la fonction permettant d'ouvrir automatiquement
un fichier .txt
J'ai donc utilisé :
OUVRIR.TEXTE("C:\ResultM.txt";;1;1;1;VRAI;VRAI;VRAI;;;;;), qui me donne un
résultat satisfaisant; mais j'aimerais pouvoir paramétrer certaines colonnes
(les colonnes 9,10 et 11) de mon fichier en format date de type "MAJ" soit
MMYYDD.

J'ai bien identifié que ce paramétrage était lié au dernier terme de la
fonction OUVRIR() mais je ne suis pas parvenu à en trouver la syntaxe.
Y a t-il quelqu'un pour m'aider?
Vous remerciant par avance.

10 réponses

1 2
Avatar
Daniel.C
Bonsoir.
Voici l'aide en anglais :

OPEN
Macro Sheets Only
Equivalent to choosing the Open command from the File menu. Opens an
existing workbook.

Syntax

OPEN(file_text, update_links, read_only, format, prot_pwd, write_res_pwd,
ignore_rorec, file_origin, custom_delimit, add_logical, editable,
file_access, notify_logical, converter)
OPEN?(file_text, update_links, read_only, format, prot_pwd, write_res_pwd,
ignore_rorec, file_origin, custom_delimit, add_logical, editable,
file_access, notify_logical, converter)
File_text is the name, as text, of the workbook you want to open.
File_text can include a drive and path, and can be a network pathname. In
the dialog-box form in Microsoft Excel for Windows, file_text can include an
asterisk (*) to represent any sequence of characters and a question mark (?)
to represent any single character.

Update_links specifies whether and how to update external and remote
references. If update_links is omitted, Microsoft Excel displays a message
asking if you want to update links.

If update_links is Then Microsoft Excel

0 Updates neither external nor remote references
1 Updates external references only
2 Updates remote references only
3 Updates external and remote references

Note When you are opening a file in WKS, WK1, or WK3 format, the
update_links argument specifies whether Microsoft Excel generates charts
from any graphs attached to the WKS, WK1, or WK3 file.

If update_links is Charts are

0 Not created
2 Created

Read_only corresponds to the Read Only check box in the Open dialog box.
If read_only is TRUE, the workbook can be modified but changes cannot be
saved; if FALSE or omitted, changes to the workbook can be saved.
Format specifies what character to use as a delimiter when opening text
files. If format is omitted, Microsoft Excel uses the current delimiter
setting.

If format is Values are separated by

1 Tabs
2 Commas
3 Spaces
4 Semicolons
5 Nothing
6 Custom characters

Prot_pwd is the password, as text, required to unprotect a protected
file. If prot_pwd is omitted and file_text requires a password, the Password
dialog box is displayed. Passwords are case-sensitive. Passwords are not
recorded when you open a workbook and supply the password with the macro
recorder on.
Write_res_pwd is the password, as text, required to open a read-only file
with full write privileges. If write_res_pwd is omitted and file_text
requires a password, the Password dialog box is displayed.
Ignore_rorec is a logical value that controls whether the read-only
recommended message is displayed. If ignore_rorec is TRUE, Microsoft Excel
prevents display of the message; if FALSE or omitted, and if read_only is
also FALSE or omitted, Microsoft Excel displays the alert when opening a
read-only recommended workbook.
File_origin is a number specifying whether a text file originated on the
Macintosh or in Windows.

File_origin Original operating environment

1 Macintosh
2 Windows (ANSI)
3 MS-DOS (PC-8)
Omitted Current operating environment

Custom_delimit is the character you want to use as a custom delimiter
when opening text files.

Custom_delimit is text or a reference or formula that returns text, such as
CHAR(124).
Custom_delimit is required if format is 6; it is ignored if format is not
6.
Only the first character in custom_delimit is used.

Add_logical is a logical value that specifies whether or not to add
file_text to the open workbook. If add_logical is TRUE, the document is
added; if FALSE or omitted, it is not added. This argument is for
compatibility with workbooks from Microsoft Excel version 4.0.
Editable is a logical valule that corresponds to opening a file (such as
a template) while holding down SHIFT key. If TRUE, editable is the
equivalent to holding down the SHIFT key while choosing the OK button in the
Open dialog box. If FALSE or omitted, this argument is ignored.
File_access is a number specifying how the file is to be accessed. If
the file is being opened for the first time, this argument is ignored. If
the file is already opened, this argument determines how to change the
user's access permissions for the file.

File Access How Accessed

1 Revert to saved copy
2 Change to read/write access
3 Change to read only access

Notify_logical is a logical value that specifies whether the user should
be notified when the shared document is available to be opened across a
network. If TRUE, the user will be notified when the document is available
to be opened. If FALSE or omitted, the user will not be notified when the
file available to be opened.
Converter is a number corresponding to the file converter to use to open
the file. Normally, Microsoft Excel automatically determines which file
converter to use; therefore, this argument can usually be excluded. If you
want to be certain, however, that a specific manually installed converter be
used, then include this argument. Use GET.WORKSPACE(62) to determine which
numbers corresponds to all of the installed converters.

Related Functions

CLOSE Closes the active window
FCLOSE Closes a text file
FOPEN Opens a file with the type of permission specified
OPEN.LINKS Opens specified supporting workbooks

Daniel
"Killian2801" a écrit dans le
message de news:
Bonjour,

Je souhaiterais recourir à la fonction permettant d'ouvrir automatiquement
un fichier .txt
J'ai donc utilisé :
OUVRIR.TEXTE("C:ResultM.txt";;1;1;1;VRAI;VRAI;VRAI;;;;;), qui me donne un
résultat satisfaisant; mais j'aimerais pouvoir paramétrer certaines
colonnes
(les colonnes 9,10 et 11) de mon fichier en format date de type "MAJ" soit
MMYYDD.

J'ai bien identifié que ce paramétrage était lié au dernier terme de la
fonction OUVRIR() mais je ne suis pas parvenu à en trouver la syntaxe.
Y a t-il quelqu'un pour m'aider?
Vous remerciant par avance.



Avatar
Killian2801
Bonjour Daniel,

Tout d'abord, merci pour ton aide.
De ce que mon anglais me permet de comprendre, je ne suis pas sûr que la
fonction que tu me proposes, réponde parfaitement à mon problème de
paramétrage de colonne. En tout cas, je ne suis pas parvenu à identifier la
syntaxe appropriée.
Donc, si tu as des compléments, n'hésite pas.
Et encore merci


Bonsoir.
Voici l'aide en anglais :

OPEN
Macro Sheets Only
Equivalent to choosing the Open command from the File menu. Opens an
existing workbook.

Syntax

OPEN(file_text, update_links, read_only, format, prot_pwd, write_res_pwd,
ignore_rorec, file_origin, custom_delimit, add_logical, editable,
file_access, notify_logical, converter)
OPEN?(file_text, update_links, read_only, format, prot_pwd, write_res_pwd,
ignore_rorec, file_origin, custom_delimit, add_logical, editable,
file_access, notify_logical, converter)
File_text is the name, as text, of the workbook you want to open.
File_text can include a drive and path, and can be a network pathname. In
the dialog-box form in Microsoft Excel for Windows, file_text can include an
asterisk (*) to represent any sequence of characters and a question mark (?)
to represent any single character.

Update_links specifies whether and how to update external and remote
references. If update_links is omitted, Microsoft Excel displays a message
asking if you want to update links.

If update_links is Then Microsoft Excel

0 Updates neither external nor remote references
1 Updates external references only
2 Updates remote references only
3 Updates external and remote references

Note When you are opening a file in WKS, WK1, or WK3 format, the
update_links argument specifies whether Microsoft Excel generates charts
from any graphs attached to the WKS, WK1, or WK3 file.

If update_links is Charts are

0 Not created
2 Created

Read_only corresponds to the Read Only check box in the Open dialog box.
If read_only is TRUE, the workbook can be modified but changes cannot be
saved; if FALSE or omitted, changes to the workbook can be saved.
Format specifies what character to use as a delimiter when opening text
files. If format is omitted, Microsoft Excel uses the current delimiter
setting.

If format is Values are separated by

1 Tabs
2 Commas
3 Spaces
4 Semicolons
5 Nothing
6 Custom characters

Prot_pwd is the password, as text, required to unprotect a protected
file. If prot_pwd is omitted and file_text requires a password, the Password
dialog box is displayed. Passwords are case-sensitive. Passwords are not
recorded when you open a workbook and supply the password with the macro
recorder on.
Write_res_pwd is the password, as text, required to open a read-only file
with full write privileges. If write_res_pwd is omitted and file_text
requires a password, the Password dialog box is displayed.
Ignore_rorec is a logical value that controls whether the read-only
recommended message is displayed. If ignore_rorec is TRUE, Microsoft Excel
prevents display of the message; if FALSE or omitted, and if read_only is
also FALSE or omitted, Microsoft Excel displays the alert when opening a
read-only recommended workbook.
File_origin is a number specifying whether a text file originated on the
Macintosh or in Windows.

File_origin Original operating environment

1 Macintosh
2 Windows (ANSI)
3 MS-DOS (PC-8)
Omitted Current operating environment

Custom_delimit is the character you want to use as a custom delimiter
when opening text files.

Custom_delimit is text or a reference or formula that returns text, such as
CHAR(124).
Custom_delimit is required if format is 6; it is ignored if format is not
6.
Only the first character in custom_delimit is used.

Add_logical is a logical value that specifies whether or not to add
file_text to the open workbook. If add_logical is TRUE, the document is
added; if FALSE or omitted, it is not added. This argument is for
compatibility with workbooks from Microsoft Excel version 4.0.
Editable is a logical valule that corresponds to opening a file (such as
a template) while holding down SHIFT key. If TRUE, editable is the
equivalent to holding down the SHIFT key while choosing the OK button in the
Open dialog box. If FALSE or omitted, this argument is ignored.
File_access is a number specifying how the file is to be accessed. If
the file is being opened for the first time, this argument is ignored. If
the file is already opened, this argument determines how to change the
user's access permissions for the file.

File Access How Accessed

1 Revert to saved copy
2 Change to read/write access
3 Change to read only access

Notify_logical is a logical value that specifies whether the user should
be notified when the shared document is available to be opened across a
network. If TRUE, the user will be notified when the document is available
to be opened. If FALSE or omitted, the user will not be notified when the
file available to be opened.
Converter is a number corresponding to the file converter to use to open
the file. Normally, Microsoft Excel automatically determines which file
converter to use; therefore, this argument can usually be excluded. If you
want to be certain, however, that a specific manually installed converter be
used, then include this argument. Use GET.WORKSPACE(62) to determine which
numbers corresponds to all of the installed converters.

Related Functions

CLOSE Closes the active window
FCLOSE Closes a text file
FOPEN Opens a file with the type of permission specified
OPEN.LINKS Opens specified supporting workbooks

Daniel
"Killian2801" a écrit dans le
message de news:
Bonjour,

Je souhaiterais recourir à la fonction permettant d'ouvrir automatiquement
un fichier .txt
J'ai donc utilisé :
OUVRIR.TEXTE("C:ResultM.txt";;1;1;1;VRAI;VRAI;VRAI;;;;;), qui me donne un
résultat satisfaisant; mais j'aimerais pouvoir paramétrer certaines
colonnes
(les colonnes 9,10 et 11) de mon fichier en format date de type "MAJ" soit
MMYYDD.

J'ai bien identifié que ce paramétrage était lié au dernier terme de la
fonction OUVRIR() mais je ne suis pas parvenu à en trouver la syntaxe.
Y a t-il quelqu'un pour m'aider?
Vous remerciant par avance.








Avatar
Daniel.C
Bonjour.
J'ai collé l'aide de la fonction OPEN que tu demandais. Je n'ai pas lu ceque
j'ai collé. Je regarderai à mon retour. Peut-être que quelqu'un t'auras
débloqué avant.
Daniel
"Killian2801" a écrit dans le
message de news:
Bonjour Daniel,

Tout d'abord, merci pour ton aide.
De ce que mon anglais me permet de comprendre, je ne suis pas sûr que la
fonction que tu me proposes, réponde parfaitement à mon problème de
paramétrage de colonne. En tout cas, je ne suis pas parvenu à identifier
la
syntaxe appropriée.
Donc, si tu as des compléments, n'hésite pas.
Et encore merci


Bonsoir.
Voici l'aide en anglais :

OPEN
Macro Sheets Only
Equivalent to choosing the Open command from the File menu. Opens an
existing workbook.

Syntax

OPEN(file_text, update_links, read_only, format, prot_pwd, write_res_pwd,
ignore_rorec, file_origin, custom_delimit, add_logical, editable,
file_access, notify_logical, converter)
OPEN?(file_text, update_links, read_only, format, prot_pwd,
write_res_pwd,
ignore_rorec, file_origin, custom_delimit, add_logical, editable,
file_access, notify_logical, converter)
File_text is the name, as text, of the workbook you want to open.
File_text can include a drive and path, and can be a network pathname. In
the dialog-box form in Microsoft Excel for Windows, file_text can include
an
asterisk (*) to represent any sequence of characters and a question mark
(?)
to represent any single character.

Update_links specifies whether and how to update external and remote
references. If update_links is omitted, Microsoft Excel displays a
message
asking if you want to update links.

If update_links is Then Microsoft Excel

0 Updates neither external nor remote references
1 Updates external references only
2 Updates remote references only
3 Updates external and remote references

Note When you are opening a file in WKS, WK1, or WK3 format, the
update_links argument specifies whether Microsoft Excel generates charts
from any graphs attached to the WKS, WK1, or WK3 file.

If update_links is Charts are

0 Not created
2 Created

Read_only corresponds to the Read Only check box in the Open dialog
box.
If read_only is TRUE, the workbook can be modified but changes cannot be
saved; if FALSE or omitted, changes to the workbook can be saved.
Format specifies what character to use as a delimiter when opening
text
files. If format is omitted, Microsoft Excel uses the current delimiter
setting.

If format is Values are separated by

1 Tabs
2 Commas
3 Spaces
4 Semicolons
5 Nothing
6 Custom characters

Prot_pwd is the password, as text, required to unprotect a protected
file. If prot_pwd is omitted and file_text requires a password, the
Password
dialog box is displayed. Passwords are case-sensitive. Passwords are not
recorded when you open a workbook and supply the password with the macro
recorder on.
Write_res_pwd is the password, as text, required to open a read-only
file
with full write privileges. If write_res_pwd is omitted and file_text
requires a password, the Password dialog box is displayed.
Ignore_rorec is a logical value that controls whether the read-only
recommended message is displayed. If ignore_rorec is TRUE, Microsoft
Excel
prevents display of the message; if FALSE or omitted, and if read_only is
also FALSE or omitted, Microsoft Excel displays the alert when opening a
read-only recommended workbook.
File_origin is a number specifying whether a text file originated on
the
Macintosh or in Windows.

File_origin Original operating environment

1 Macintosh
2 Windows (ANSI)
3 MS-DOS (PC-8)
Omitted Current operating environment

Custom_delimit is the character you want to use as a custom delimiter
when opening text files.

Custom_delimit is text or a reference or formula that returns text, such
as
CHAR(124).
Custom_delimit is required if format is 6; it is ignored if format is
not
6.
Only the first character in custom_delimit is used.

Add_logical is a logical value that specifies whether or not to add
file_text to the open workbook. If add_logical is TRUE, the document is
added; if FALSE or omitted, it is not added. This argument is for
compatibility with workbooks from Microsoft Excel version 4.0.
Editable is a logical valule that corresponds to opening a file (such
as
a template) while holding down SHIFT key. If TRUE, editable is the
equivalent to holding down the SHIFT key while choosing the OK button in
the
Open dialog box. If FALSE or omitted, this argument is ignored.
File_access is a number specifying how the file is to be accessed. If
the file is being opened for the first time, this argument is ignored. If
the file is already opened, this argument determines how to change the
user's access permissions for the file.

File Access How Accessed

1 Revert to saved copy
2 Change to read/write access
3 Change to read only access

Notify_logical is a logical value that specifies whether the user
should
be notified when the shared document is available to be opened across a
network. If TRUE, the user will be notified when the document is
available
to be opened. If FALSE or omitted, the user will not be notified when the
file available to be opened.
Converter is a number corresponding to the file converter to use to
open
the file. Normally, Microsoft Excel automatically determines which file
converter to use; therefore, this argument can usually be excluded. If
you
want to be certain, however, that a specific manually installed converter
be
used, then include this argument. Use GET.WORKSPACE(62) to determine
which
numbers corresponds to all of the installed converters.

Related Functions

CLOSE Closes the active window
FCLOSE Closes a text file
FOPEN Opens a file with the type of permission specified
OPEN.LINKS Opens specified supporting workbooks

Daniel
"Killian2801" a écrit dans le
message de news:
Bonjour,

Je souhaiterais recourir à la fonction permettant d'ouvrir
automatiquement
un fichier .txt
J'ai donc utilisé :
OUVRIR.TEXTE("C:ResultM.txt";;1;1;1;VRAI;VRAI;VRAI;;;;;), qui me donne
un
résultat satisfaisant; mais j'aimerais pouvoir paramétrer certaines
colonnes
(les colonnes 9,10 et 11) de mon fichier en format date de type "MAJ"
soit
MMYYDD.

J'ai bien identifié que ce paramétrage était lié au dernier terme de la
fonction OUVRIR() mais je ne suis pas parvenu à en trouver la syntaxe.
Y a t-il quelqu'un pour m'aider?
Vous remerciant par avance.










Avatar
Modeste
Bonsour® Killian2801 avec ferveur ;o))) vous nous disiez :

De ce que mon anglais me permet de comprendre, je ne suis pas sûr que
la fonction que tu me proposes, réponde parfaitement à mon problème de
paramétrage de colonne. En tout cas, je ne suis pas parvenu à
identifier la syntaxe appropriée.


et pour cause....
il n'y est nullement fait mention de parametrage de colonnes dans la fonction
OUVRIR

il faut faire ensuite une boucle sur les colonnes considérées en utilisant la
fonction FORMAT.NOMBRE("MMAADD")

--
@+
;o)))

Avatar
Killian2801
Bonjour et merci de ta participation.

En effet, c'est bien ce qu'il me semblait. Toutefois, il existe une fonction
Macro Excel 4.0 OUVRIR.TEXTE() qui en tout état de cause devrait solutionner
mon problème... sauf que je n'ai pas la syntaxe adéquate pour le dernier
terme de la fonction.
Dans la solution que tu me proposes, je suis bien ennuyé car je perds une
partie de l'information pour les colonnes qui doivent être importées au
format texte commençant par un zéro.

As tu d'autres suggestions?


Bonsour® Killian2801 avec ferveur ;o))) vous nous disiez :

De ce que mon anglais me permet de comprendre, je ne suis pas sûr que
la fonction que tu me proposes, réponde parfaitement à mon problème de
paramétrage de colonne. En tout cas, je ne suis pas parvenu à
identifier la syntaxe appropriée.


et pour cause....
il n'y est nullement fait mention de parametrage de colonnes dans la fonction
OUVRIR

il faut faire ensuite une boucle sur les colonnes considérées en utilisant la
fonction FORMAT.NOMBRE("MMAADD")

--
@+
;o)))






Avatar
Daniel.C
Regarde si ce qui suit peut t'aider :
extrait de l'aide de OPEN.TEXT :
Field_info is an array which consists of the following elements: "column
number, data_format", if file_type is 1; or "start_pos, data_format" if
file_type is 2.
extrait de l'aide de TEXT.TO.COLUMNS :
Field_Info is an array which consists of the following elements: "column
number, data_format", if data_type is 1; or "start_pos, data_format" if
data_type is 2. The second number defines the column's data format, and can
be one of the following.

2nd Number Data Format

1 General
2 Text
3 Date, in the form MDY
4 Date, in the form DMY
5 Date, in the form YMD
6 Date, in the form MYD
7 Date, in the form DYM
8 Date, in the form YDM
9 Do not import column (skip)

Daniel
"Killian2801" a écrit dans le
message de news:
Bonjour et merci de ta participation.

En effet, c'est bien ce qu'il me semblait. Toutefois, il existe une
fonction
Macro Excel 4.0 OUVRIR.TEXTE() qui en tout état de cause devrait
solutionner
mon problème... sauf que je n'ai pas la syntaxe adéquate pour le dernier
terme de la fonction.
Dans la solution que tu me proposes, je suis bien ennuyé car je perds une
partie de l'information pour les colonnes qui doivent être importées au
format texte commençant par un zéro.

As tu d'autres suggestions?


Bonsour® Killian2801 avec ferveur ;o))) vous nous disiez :

De ce que mon anglais me permet de comprendre, je ne suis pas sûr que
la fonction que tu me proposes, réponde parfaitement à mon problème de
paramétrage de colonne. En tout cas, je ne suis pas parvenu à
identifier la syntaxe appropriée.


et pour cause....
il n'y est nullement fait mention de parametrage de colonnes dans la
fonction
OUVRIR

il faut faire ensuite une boucle sur les colonnes considérées en
utilisant la
fonction FORMAT.NOMBRE("MMAADD")

--
@+
;o)))








Avatar
Killian2801
Bonjour Daniel,

Malgré maints essais, je ne suis toujours pas parvenu à identifier la
syntaxe adéquate... ça m'énerve!!!


Regarde si ce qui suit peut t'aider :
extrait de l'aide de OPEN.TEXT :
Field_info is an array which consists of the following elements: "column
number, data_format", if file_type is 1; or "start_pos, data_format" if
file_type is 2.
extrait de l'aide de TEXT.TO.COLUMNS :
Field_Info is an array which consists of the following elements: "column
number, data_format", if data_type is 1; or "start_pos, data_format" if
data_type is 2. The second number defines the column's data format, and can
be one of the following.

2nd Number Data Format

1 General
2 Text
3 Date, in the form MDY
4 Date, in the form DMY
5 Date, in the form YMD
6 Date, in the form MYD
7 Date, in the form DYM
8 Date, in the form YDM
9 Do not import column (skip)

Daniel
"Killian2801" a écrit dans le
message de news:
Bonjour et merci de ta participation.

En effet, c'est bien ce qu'il me semblait. Toutefois, il existe une
fonction
Macro Excel 4.0 OUVRIR.TEXTE() qui en tout état de cause devrait
solutionner
mon problème... sauf que je n'ai pas la syntaxe adéquate pour le dernier
terme de la fonction.
Dans la solution que tu me proposes, je suis bien ennuyé car je perds une
partie de l'information pour les colonnes qui doivent être importées au
format texte commençant par un zéro.

As tu d'autres suggestions?


Bonsour® Killian2801 avec ferveur ;o))) vous nous disiez :

De ce que mon anglais me permet de comprendre, je ne suis pas sûr que
la fonction que tu me proposes, réponde parfaitement à mon problème de
paramétrage de colonne. En tout cas, je ne suis pas parvenu à
identifier la syntaxe appropriée.


et pour cause....
il n'y est nullement fait mention de parametrage de colonnes dans la
fonction
OUVRIR

il faut faire ensuite une boucle sur les colonnes considérées en
utilisant la
fonction FORMAT.NOMBRE("MMAADD")

--
@+
;o)))













Avatar
Daniel.C
Bonjour.
Peux-tu mettre un extrait de ton fichier de quelques lignes sur
www.cjoint.com ? Remplace les éventuelles données confidentielles. Poste
ensuite l'adresse générée.
Daniel
"Killian2801" a écrit dans le
message de news:
Bonjour Daniel,

Malgré maints essais, je ne suis toujours pas parvenu à identifier la
syntaxe adéquate... ça m'énerve!!!


Regarde si ce qui suit peut t'aider :
extrait de l'aide de OPEN.TEXT :
Field_info is an array which consists of the following elements:
"column
number, data_format", if file_type is 1; or "start_pos, data_format" if
file_type is 2.
extrait de l'aide de TEXT.TO.COLUMNS :
Field_Info is an array which consists of the following elements:
"column
number, data_format", if data_type is 1; or "start_pos, data_format" if
data_type is 2. The second number defines the column's data format, and
can
be one of the following.

2nd Number Data Format

1 General
2 Text
3 Date, in the form MDY
4 Date, in the form DMY
5 Date, in the form YMD
6 Date, in the form MYD
7 Date, in the form DYM
8 Date, in the form YDM
9 Do not import column (skip)

Daniel
"Killian2801" a écrit dans le
message de news:
Bonjour et merci de ta participation.

En effet, c'est bien ce qu'il me semblait. Toutefois, il existe une
fonction
Macro Excel 4.0 OUVRIR.TEXTE() qui en tout état de cause devrait
solutionner
mon problème... sauf que je n'ai pas la syntaxe adéquate pour le
dernier
terme de la fonction.
Dans la solution que tu me proposes, je suis bien ennuyé car je perds
une
partie de l'information pour les colonnes qui doivent être importées au
format texte commençant par un zéro.

As tu d'autres suggestions?


Bonsour® Killian2801 avec ferveur ;o))) vous nous disiez :

De ce que mon anglais me permet de comprendre, je ne suis pas sûr
que
la fonction que tu me proposes, réponde parfaitement à mon problème
de
paramétrage de colonne. En tout cas, je ne suis pas parvenu à
identifier la syntaxe appropriée.


et pour cause....
il n'y est nullement fait mention de parametrage de colonnes dans la
fonction
OUVRIR

il faut faire ensuite une boucle sur les colonnes considérées en
utilisant la
fonction FORMAT.NOMBRE("MMAADD")

--
@+
;o)))















Avatar
Killian2801
Tu trouveras ci-joint les 2 liens ainsi obtenus sous cjoint.com :
Fichier .txt : http://cjoint.com/?dBqpWbzjgd
Fichier .xls : http://cjoint.com/?dBqqYdW4wm

Encore une fois merci.




Bonjour.
Peux-tu mettre un extrait de ton fichier de quelques lignes sur
www.cjoint.com ? Remplace les éventuelles données confidentielles. Poste
ensuite l'adresse générée.
Daniel
"Killian2801" a écrit dans le
message de news:
Bonjour Daniel,

Malgré maints essais, je ne suis toujours pas parvenu à identifier la
syntaxe adéquate... ça m'énerve!!!


Regarde si ce qui suit peut t'aider :
extrait de l'aide de OPEN.TEXT :
Field_info is an array which consists of the following elements:
"column
number, data_format", if file_type is 1; or "start_pos, data_format" if
file_type is 2.
extrait de l'aide de TEXT.TO.COLUMNS :
Field_Info is an array which consists of the following elements:
"column
number, data_format", if data_type is 1; or "start_pos, data_format" if
data_type is 2. The second number defines the column's data format, and
can
be one of the following.

2nd Number Data Format

1 General
2 Text
3 Date, in the form MDY
4 Date, in the form DMY
5 Date, in the form YMD
6 Date, in the form MYD
7 Date, in the form DYM
8 Date, in the form YDM
9 Do not import column (skip)

Daniel
"Killian2801" a écrit dans le
message de news:
Bonjour et merci de ta participation.

En effet, c'est bien ce qu'il me semblait. Toutefois, il existe une
fonction
Macro Excel 4.0 OUVRIR.TEXTE() qui en tout état de cause devrait
solutionner
mon problème... sauf que je n'ai pas la syntaxe adéquate pour le
dernier
terme de la fonction.
Dans la solution que tu me proposes, je suis bien ennuyé car je perds
une
partie de l'information pour les colonnes qui doivent être importées au
format texte commençant par un zéro.

As tu d'autres suggestions?


Bonsour® Killian2801 avec ferveur ;o))) vous nous disiez :

De ce que mon anglais me permet de comprendre, je ne suis pas sûr
que
la fonction que tu me proposes, réponde parfaitement à mon problème
de
paramétrage de colonne. En tout cas, je ne suis pas parvenu à
identifier la syntaxe appropriée.


et pour cause....
il n'y est nullement fait mention de parametrage de colonnes dans la
fonction
OUVRIR

il faut faire ensuite une boucle sur les colonnes considérées en
utilisant la
fonction FORMAT.NOMBRE("MMAADD")

--
@+
;o)))




















Avatar
Daniel.C
Je regarde.
Juste par curiosité, tu travailles avec Excel 4 ?
Daniel
1 2