Bonjour, J'utilise ce code repris sur le site et qui fonctionne parfaitement mais je souhaite ajouter à l'export le N° de rue qui dans mon formulaire se nomme N°-Bte Livr Le code utilisé actuellement est celui-ci: Private Sub Commande877_Click() Dim Ol_App As New Outlook.Application Dim Ol_Mapi As Namespace Dim Ol_Folder As MAPIFolder Dim Ol_Contact As Outlook.ContactItem Set Ol_Mapi = Ol_App.GetNamespace("MAPI") Set Ol_Folder = Ol_Mapi.GetDefaultFolder(olFolderContacts) Set Ol_Contact = Ol_App.CreateItem(olContactItem) With Ol_Contact If Not IsNull(Me!Société) Then .FirstName = Me!Société End If If Not IsNull(Me.Page_WEB) Then .BusinessHomePage = Me.Page_WEB End If If Not IsNull(Me!Téléphone) Then .BusinessTelephoneNumber = Me!Téléphone End If If Not IsNull(Me!FaxLivraisons) Then .BusinessFaxNumber = Me!FaxLivraisons End If If Not IsNull(Me!SociétéFactu) Then .CompanyName = SociétéFactu End If If Not IsNull(Me.Ctl19GSM) Then .MobileTelephoneNumber = Ctl19GSM End If If Not IsNull(Me.Ctl21E_mails) Then .Email1Address = Ctl21E_mails End If If Not IsNull(Me.AdresseLivr) Then .BusinessAddressStreet = AdresseLivr End If If Not IsNull(Me.Ctl34Code_Post) Then .BusinessAddressPostalCode = Ctl34Code_Post End If If Not IsNull(Me.Ctl35Ville) Then .BusinessAddressCity = Ctl35Ville End If If Not IsNull(Me.Ctl36POS_LIV_PAYS) Then .BusinessAddressCountry = Ctl36POS_LIV_PAYS End If .Categories = "Add Access" .Save End With Set Ol_Contact = Nothing Set Ol_Folder = Nothing Set Ol_Mapi = Nothing Set Ol_App = Nothing End Sub Je suppose que je dois rajouter une ligne du style: If Not IsNull(Me.N°-Bte Livr) Then .?????????????????? = Me.N°-Bte Livr End If Merci d'avance. |