Excel - Excel avec Thuderbird
Asked By Alain Lebayle
20-Nov-09 03:53 PM

Bonjour,
J'ai cette proc?dure qui m'a ?t? fourni par Isabelle.
Elle fonctionne tr?s bien avec OE, mais comme nous changeons de client
de messagerie.
En fait en cliquant sur le bouton macro qui se trouve sur la feuille, le
classeur s'enregistre puis le client de messagerie se lance et joint le
classeur en PJ avec le texte dans le corps du texte, "Visa" dans
l'exp?diteur et le sujet est l? aussi.
Je ne comprends pas les SendKeys
j'ai essay? d'adapter en rempla?ant :
Shell "C:\Program Files\Outlook Express\msimn.exe " _
par
Shell "C:\Program Files\Mozilla Thunderbird\thunderbird.exe" _
mais cela ne fonctionne pas.
Je vous remercie
Alain
Sub Envoie_Fichier()
Application.DisplayAlerts = False
Application.ScreenUpdating = False
ThisWorkbook.Save
Fichier = ActiveWorkbook.FullName
La_date = Format(Now, "dd mmm yy")
La_date2 = Format(Now, "dddd dd mmmm yyyy")
Lheure = Format(Time, "hh:mm")
Lheure2 = Format(Time, "hh:mm")
Sujet = "Cessions du " & La_date & " envoy? ? " & Lheure '& ".xls"
Msg = "Bonjour," & vbNewLine & "Je vous prie de trouver ci-joint le
fichier : " & _
vbNewLine & "Cessions du " & La_date2 & " envoy? ? " & Lheure2 & _
vbNewLine & "Cordialement."
Shell "C:\Program Files\Outlook Express\msimn.exe " _
& "/mailurl:mailto:" & "Visa" & "?subject=" & Sujet & "&Body=" & Msg & ""
SendKeys "%I" & "p" & Fichier & "~" & "%S"
Application.ScreenUpdating = True
Application.DisplayAlerts = True
End Sub
ActiveWorkbook.FullName
(1)
Outlook
(1)
Excel
(1)
Application.DisplayAlerts
(1)
VBA
(1)
LvohdLmuJH
(1)
VbNewLine
(1)
SendKeys
(1)
isabelle replied to Alain Lebayle
bonjour Alain,
voici la signification des caract?res apr?s "SendKeys":
SendKeys "%I" & "p" & Fichier & "~" & "%S"
* %I et P = Insertion de la pi?ce jointe dans Outlook Express. (%=Alt)
* ~ = Validation. (~=Entr?e)
* %S = Envoyer.
les touches ?quivalente de contr?le rapide sous Thunderbird
pour joindre un fichier
SendKeys "%f" & "%j" & Fichier & "~"
pour envoyer
SendKeys "%f" & "%v" & "~"
isabelle
Alain Lebayle a ?crit :
Alain Lebayle replied to isabelle
Bonjour,
Merci beaucoup Isabelle, mais apparemment, je ne dois pas faire
correctement les choses.
Je t'envoie le fichier : http://cjoint.com/?lvohdLmuJH
Merci
Alain
isabelle a ?crit :
isabelle replied to Alain Lebayle
bonjour Alain,
il y a un erreur sur cette ligne,
Shell "C:\Program Files\Mozilla Thunderbird\thunderbird.exe" _
& "/mailurl:mailto:" & "i@v" & "?subject=" & Sujet & "&Body=" & Msg & ""
je ne suis pas sur de ces termes, ce sont ceux de OE
/mailurl:mailto:,
?subject=
&Body=
ce n'est peut ?tre pas les m?me qu'il faut utiliser pour Thunderbird
isabelle
Alain Lebayle a ?crit :
isabelle replied to Alain Lebayle
bonjour Alain,
j'ai trouv? un exemple complet ici :
http://www.vbfrance.com/codes/ENVOI-AUTOMATIQUE-MAIL-AVEC-PIECE-JOINTE-VBA-EXCEL_31545.aspx
envoi automatique de mail (avec pi?ce jointe) en vba : excel, word ou
access par oulook express ou modzilla thunderbird ou d'autres
isabelle
Alain Lebayle a ?crit :
Alain Lebayle replied to isabelle
Ok, merci beaucoup Isabelle, c'est vraiment tr?s sympa de ta part
@+
Alain
isabelle a ?crit :
Win7 VirtualStore Weirdness with Excel 2002 and earlier Excel I thought I'd share a weird experience I had today in case it saves installer for it - - which registers it as an add-in for all installed versions of Excel - - and tested it. Fine in Windows 2000 in all installed versions of Excel. Boot to Windows XP, fine there too. Boot to Windows 7. Fine in Excel 2010, 2007, and 2003. But Excel 2002 and 2000 were still loading the old version of the add-in. I uninstalled the add-in, made sure it was gone, and reinstalled it. Same problem in Excel 2002 and earlier; still works fine in Excel 2003 and later. I opened the VB editor in Excel 2003 and in Excel 2002
Excel and the Math Coprocessor for DLLs Excel I have a large Win32 DLL (10 MB) that is called from my user interface (written in C++) or from VBA in MS Excel. In my user interface, the DLL runs in its own space and calculates correctly. Under Excel VBA, my DLL is having problems with double precision accuracy. The following test passes in my bottom CHPTST = (DIVTWO * bottom) - top In my user interface, the chptst result is zero. Under Excel VBA, the chptst result is 0.2851266E-09. I have tried resetting the math coprocessor in
Pb de recalcul Excel Bonjour, J'ai un problème de recalcul de ma feuille excel. J'importe une colonne qui se retrouve en texte 0000 0000 0000 0000 FFF0 7FFF cela soit automatique ? Merci d'avance à ceux qui se pencheront sur mon cas. Caroual Excel - French Discussions WorksheetFunction (1) AddIns (1) Worksheets (1) Excel 2007 (1) Macro (1) Proc (1) LEFT (1) VBA (1) Bonsoir Dans la doc sur HEXBIN, ils ne parlent que de nombre . . . . .or ici c'est du texte. ???? Quant ? cette page, elle parle de non fonctionnement si VBA est d?sactiv? . . . . http: / / support.microsoft.com / kb / 282847 / fr#appliesto Par contre, ceci = HEX2BIN 426a74cc@news.free.fr. . . Bonjour, J'ai un probl?me de recalcul de ma feuille excel. J'importe une colonne qui se retrouve en texte 0000 0000 0000 0000 FFF0 7FFF chez moi. Elle ne fonctionnait pas, j'ai coché la macro complémentaire Utilitaires d'analyses VBA. et elle a marché, à part le problème de recalcul mais là avec la boucle
Outils pour optimiser macro? Excel Bonjour: Je souhaiterais savoir s'il existe des outils et ou techniques pour diagnostiquer et la rapidit = E9 de traitement ou les points de ralentissement. Remerciements et sinc = E8res. Christophe Excel - French Discussions WorksheetFunction (1) PageSetup (1) Worksheets (1) Scenarios (1) Interior (1) Borders (1) Sheets Contents: = 3DTrue, Scenarios: = 3DTrue 'Delete all Worksheets except 9 of them ActiveWorkbook.Unprotect Password: = 3D"* ** **" Application.DisplayAlerts = 3D False For Each S In ActiveWorkbook.Worksheets If S.Name <> "What is the Scheduler S.Name <> And S.Name <> "Transitory4" And S.Name <> "Transitory6" Then S.Delete Next S Application.DisplayAlerts = 3D False 'Create Copy content-value of "Country Appointments" moins colonne A into "Transitory1" (no Instructions", "Fax Template", Appointments", "Statistics", "EmailAllCountrySchedules", 'on fait rien 'Case Else 'On Error Resume Next 'Application.DisplayAlerts = 3D False 'ThisWorkbook.Sheets(c.Value).Delete 'Application.DisplayAlerts = 3D True 'On Error GoTo 0
Macro pour supprimer les feuilles d'un classeur avec conditions Excel Bonjour: Je travaille avec Excel 2007 sous Windows XP. Je souhaiterais cr = E9er une macro pour effacer toutes les feuilles la colonne B de la feuille "Company Data" Merci par avance pour votre aide. Christophe Excel - French Discussions Windows XP (1) Worksheets (1) Excel 2007 (1) Sheets (1) Error (1) Exception (1) Macro (1) Application (1) Christophe avait ?nonc B1], [B65536].End(xlUp)) If c.Value <> "Company Data" And c.Value <> "Country Data" Then Application.DisplayAlerts = False Sheets(c.Value).Delete Application.DisplayAlerts = true? End If Next c End Sub cordialement. Daniel Bonjour, '- -- -- -- -- -- -- -- -- - Sub jj() With Sheets("Company