Message 1 sur 10

Non applicable
11-17-2016
01:08 PM
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Lien permanent
- Imprimer
- Signaler
Hi,
As soon as I try to use ThisDoc.FileName and Format commands together, I'm getting a error due to the Format command.
This will give me an error;
SyntaxEditor Code Snippet
iProperties.Value("Custom", "Diametre_ext")=Format(Mid(ThisDoc.FileName(False),9,3)/100,"Standard")
The error being ;
Erreur sur la ligne 1: Argument non spécifié pour le paramètre 'format' de 'Public Shared Function Format(enumType As System.Type, value As Object, format As String) As String'.
Erreur sur la ligne 1: Impossible de convertir une valeur de type 'Double' en 'System.Type'.
This works :
SyntaxEditor Code Snippet
iProperties.Value("Custom", "Diametre_ext")=Format(Mid(iProperties.Value("Project", "Part Number"),9,3)/100,"Standard")
As you can guess it I'm a noob in VBA and please send help.
BR
Sebastian
Résolu ! Accéder à la solution.