<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Tatiak</title><link>http://tatiak.canalblog.com/</link><description>Excel, Guitare, New- Beetle, ... et netbook ...</description><language>fr</language><lastBuildDate>Sun, 15 Nov 2009 08:25:53 GMT</lastBuildDate><generator>CanalBlog - http://www.canalblog.com</generator><item><title>Contr&#xf4;le de saisie</title><dc:creator>tatiak</dc:creator><link>http://tatiak.canalblog.com/archives/2009/11/03/15668263.html</link><category>Excel</category><comments>http://tatiak.canalblog.com/archives/2009/11/03/15668263.html#comments</comments><wfw:commentRss>http://tatiak.canalblog.com/feeds/rss/comments/post/15668263/</wfw:commentRss><guid isPermaLink="true">http://tatiak.canalblog.com/archives/2009/11/03/15668263.html</guid><description>&lt;p style=&quot;text-align: justify;&quot;&gt;En r&#xe9;ponse &#xe0; un p&apos;tit probl&#xe8;me de saisie sur Userform, je vous livre ici ma p&apos;tite m&#xe9;thode pour s&apos;assurer&amp;nbsp; que l&apos;utilisateur saisisse des info valides et conformes &#xe0; l&apos;attente tout en aidant la saisie.&lt;br /&gt;En effet, il est classique de demander la saisie de chiffre et/ou de date &#xe0; l&apos;utilisateur via un beau Userform que vous avez mis un temps fou &#xe0; concevoir. Il en reste pas moins que si des garde-fou ne vont pas avec, l&apos;utilisateur pourra saisir n&apos;importe quoi dans un champs devant contenir un nombre (une somme pas exemple) ou une date.&lt;br /&gt;Ainsi la&amp;nbsp; m&#xe9;thode ici expos&#xe9;e, interdit tout simplement la saisie de caract&#xe8;res autre que des chiffres et les signes . (point) et / (slash). Le point sera transform&#xe9; en virgule si, comme moi, vous avez configur&#xe9; votre ordi en utilisation clavier fran&#xe7;ais et le slash est utile pour la saisie des dates.&lt;br /&gt;&lt;br /&gt;Pour d&#xe9;tailler le code, tout d&apos;abord noter la d&#xe9;claration de 2 constantes &amp;quot;publiques&amp;quot; :&lt;br /&gt;&lt;br /&gt;&lt;font color=&quot;#ffff00&quot;&gt;Public Const Touche = &amp;quot;1234567890&amp;amp;&#xe9;&amp;quot;&amp;quot;&amp;quot;&amp;quot;&apos;(-&#xe8;_&#xe7;&#xe0;,;:&amp;quot;&lt;br /&gt;Public Const ToucheMaj = &amp;quot;123456789012334567890../&amp;quot;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;Ces 2 constantes sont les caract&#xe8;res &amp;quot;autoris&#xe9;s&amp;quot; pour l&apos;une et la traduction pour l&apos;autre. En effet, le deuxi&#xe8;me aspect de la question est de faciliter la saisie, pour ceux qui n&apos;ont pas de pav&#xe9; num&#xe9;rique ,en leur permettant de taper sur la touche des chiffres sans appuyer sur la touche Majuscule en m&#xea;me temps.&lt;br /&gt;&lt;br /&gt;Par la suite, le code de votre userform sera agr&#xe9;ment&#xe9; par les lignes suivantes (pour chaque textbox) :&lt;br /&gt;&lt;br /&gt;&lt;font color=&quot;#ffff00&quot;&gt;Private Sub textbox1_keyPress(ByVal KeyAscii As MSForms.ReturnInteger)&lt;br /&gt;&amp;nbsp; &amp;nbsp; If InStr(Touche, Chr(KeyAscii)) = 0 Then KeyAscii = 0 Else _&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; KeyAscii = Asc(Mid(ToucheMaj, InStr(Touche, Chr(KeyAscii)), 1))&lt;br /&gt;End Sub&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;En clair : si la touche enfonc&#xe9;e correspond &#xe0; un signe valide (list&#xe9; dans la constante &amp;quot;Touche&amp;quot;), on le transforme dans le signe correspondant valide (list&#xe9; dans la constante &amp;quot;ToucheMaj&amp;quot;)&lt;/p&gt;
&lt;p style=&quot;text-align: justify;&quot;&gt;Voil&#xe0; tout, en quelques lignes de code, votre saisie est s&#xe9;curis&#xe9;e et facilit&#xe9;e!&lt;/p&gt;
&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://www.excel-downloads.com/forum/images/smilies/smile.gif&quot; title=&quot;Smile&quot; class=&quot;inlineimg&quot; /&gt;&amp;nbsp; tatiak&lt;/p&gt;
&lt;p style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://storage.canalblog.com/88/13/244825/45919241.zip&quot;&gt;T&#xe9;l&#xe9;chargement de&amp;nbsp; : Controle_saisie.zip&lt;/a&gt;&lt;/p&gt;</description><pubDate>Tue, 03 Nov 2009 13:47:01 GMT</pubDate></item><item><title>Switch MacBook Pro</title><dc:creator>tatiak</dc:creator><link>http://tatiak.canalblog.com/archives/2009/10/31/15627727.html</link><category>Netbook</category><comments>http://tatiak.canalblog.com/archives/2009/10/31/15627727.html#comments</comments><wfw:commentRss>http://tatiak.canalblog.com/feeds/rss/comments/post/15627727/</wfw:commentRss><guid isPermaLink="true">http://tatiak.canalblog.com/archives/2009/10/31/15627727.html</guid><description>&lt;p style=&quot;text-align: justify;&quot;&gt;Depuis un p&apos;tit bout de temps, je lorgnais sur les Mac. Apr&#xe8;s avoir essay&#xe9;, avec plus ou moins de bonheur, un certain nombre de Netbook, je suis pass&#xe9; &#xe0; l&apos;acte. Me voici donc devant un MacBook Pro 13&apos;&apos; tout neuf!&lt;br /&gt;Mes impressions? Il y a du bon ... et du moins bon.&lt;br /&gt;&lt;br /&gt;D&#xe9;taillons.&lt;br /&gt;Il faut dire, tout d&apos;abord, que ce sont des sacr&#xe9;es bonnes machines. Look d&apos;enfer, ordi&amp;nbsp; fin et relativement l&#xe9;ger (l&apos;appellation &amp;quot;ultra portable&amp;quot; du MBP vue sur certains sites est &#xe0; mon sens un peu exag&#xe9;r&#xe9;e), un clavier tr&#xe8;s confortable et r&#xe9;tro-&#xe9;clair&#xe9; (comment s&apos;en passer, maintenant?), une machine silencieuse, un syst&#xe8;me qui pulse, un syst&#xe8;me de veille tr&#xe8;s r&#xe9;actif.&lt;br /&gt;&lt;br /&gt;Ce que j&apos;appr&#xe9;cie particuli&#xe8;rement, n&apos;en d&#xe9;plaise &#xe0; certain, c&apos;est sa compatibilit&#xe9; avec Windows! Ben oui, on ne se refait pas &lt;img border=&quot;0&quot; class=&quot;inlineimg&quot; title=&quot;Smile&quot; src=&quot;http://www.excel-downloads.com/forum/images/smilies/smile.gif&quot; /&gt;.&amp;nbsp; Ainsi, via bootcamp, mon MacBook dispose de Snow L&#xe9;o et de Windows Seven en double boot. Ainsi mes applic PC (professionnelles) ne trouvant pas d&apos;&#xe9;quivalent sous Mac peuvent fonctionner.&lt;br /&gt;&lt;br /&gt;Au chapitre des (petites) contrari&#xe9;t&#xe9;s, pour une machine de cette cat&#xe9;gorie, je trouve dommage d&apos;avoir fait l&apos;impasse sur certains points. Ainsi le lecteur SDCard ne permet pas &#xe0; la carte SD son introduction compl&#xe8;te! Elle d&#xe9;passe! Moi qui a l&apos;habitude d&apos;en laisser une pour servir de sauvegarde &#xe0; certains fichiers sensibles, c&apos;est g&#xea;nant. D&apos;autre part les ports USB sont mal foutus : il n&apos;y en a que 2, bon passe encore, mais ils sont trop proches l&apos;un de l&apos;autre : d&#xe8;s lors qu&apos;un accessoire usb est un poil large (ma cl&#xe9; 3G par exemple) l&apos;autre port ne peut pas servir, l&apos;utilisation d&apos;un prolongateur s&apos;impose alors, mais encore faut-il penser &#xe0; l&apos;emmener avec soi!&lt;br /&gt;&lt;br /&gt;Pour ce qui est des fonctionnalit&#xe9;s sp&#xe9;cifiques, autant j&apos;appr&#xe9;cie le r&#xe9;tro-&#xe9;clairage du clavier (&#xe7;a, je l&apos;ai d&#xe9;j&#xe0; dit), autant je suis dubitatif sur ce qui est dit sur le touchpad. Peut &#xea;tre que l&apos;habitude viendra, ou que je ne sais pas me servir de cet accessoire, mais je n&apos;arrive pas &#xe0; &#xea;tre efficient avec ce truc. Une bonne vielle souris bluetooth me convient cent fois mieux. Et pour finir de r&#xe2;ler, un &#xe9;cran mat aurait &#xe9;t&#xe9; le top.&lt;br /&gt;&lt;br /&gt;Pour conclure, c&apos;est une machine satisfaisante dans l&apos;ensemble, qui oblige les habitu&#xe9;s des machines windows ou linux de revoir certains automatismes (cf configuration des touches du clavier par exemple), mais avec laquelle je devrai faire un bon p&apos;tit bout de chemin!&lt;br /&gt;&lt;br /&gt;&lt;img border=&quot;0&quot; class=&quot;inlineimg&quot; title=&quot;Smile&quot; src=&quot;http://www.excel-downloads.com/forum/images/smilies/smile.gif&quot; /&gt;&amp;nbsp; tatiak&lt;/p&gt;</description><pubDate>Sat, 31 Oct 2009 07:31:00 GMT</pubDate></item><item><title>&quot;Piloter&quot; Word depuis Excel - 3&#xe8;me partie</title><dc:creator>tatiak</dc:creator><link>http://tatiak.canalblog.com/archives/2009/06/28/14229016.html</link><category>Excel</category><comments>http://tatiak.canalblog.com/archives/2009/06/28/14229016.html#comments</comments><wfw:commentRss>http://tatiak.canalblog.com/feeds/rss/comments/post/14229016/</wfw:commentRss><guid isPermaLink="true">http://tatiak.canalblog.com/archives/2009/06/28/14229016.html</guid><description>&lt;p&gt;Pour continuer, ce sujet : vos donn&#xe9;es sont maintenant transcrites dans votre document word, et un peu de mise en forme vous est n&#xe9;cessaire pour les mettre en valeur. Voyons plut&#xf4;t.&lt;/p&gt;
&lt;p&gt;Pour cette d&#xe9;monstration, on suppose que les donn&#xe9;es &#xe0; transcrire sont la r&#xe9;sultante de plusieurs donn&#xe9;es Xl. &lt;br /&gt;Votre variable &amp;quot;Transit&amp;quot; sera &#xe0; 2 dimensions et le texte &#xe0; &#xe9;crire pourrait &#xea;tre par exemple :&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; Texte_&#xe0;_transcrire= &amp;quot;Article : &amp;quot; &amp;amp; Transit(1, i) &amp;amp; vbcr &amp;amp; Transit(2, i) &amp;amp; vbtab &amp;amp; Transit(3,i)&lt;br /&gt;Vous noterez ici l&apos;int&#xe9;gration de retour chariot &amp;quot;vbcr&amp;quot; pour mettre &#xe0; la ligne et d&apos;une tabulation &amp;quot;vbtab&amp;quot; pour laquelle il peut &#xea;tre pr&#xe9;vu le positionnement pr&#xe9;alable d&apos;un taquet dans le document word &amp;quot;de base&amp;quot;.&lt;/p&gt;
&lt;p&gt;L&apos;int&#xe9;gration de la ligne donnera donc :&lt;br /&gt;&lt;font color=&quot;#ffff99&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; With WordDoc.Tables(1)&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;For i = 1 To Nbdonn&#xe9;es&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; Texte_&#xe0;_transcrire= &amp;quot;Article : &amp;quot; &amp;amp; Transit(1, i) &amp;amp; vbcr &amp;amp; Transit(2, i) &amp;amp; vbtab &amp;amp; Transit(3,i)&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; ligne = .Rows.Count&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; .Cell(ligne, 1).Range.InsertAfter Texte_&#xe0;_transcrire&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;next i&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; end with&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Pour mettre en &#xe9;vidence l&apos;intitul&#xe9; &amp;quot;Article&amp;quot; contenu dans le texte, on va demander gentillement &#xe0; &amp;quot;l&apos;application Word&amp;quot; (&lt;font face=&quot;georgia, times new roman, times, serif&quot; color=&quot;#ffff99&quot;&gt;Dim WordApp As Word.Application&lt;/font&gt;) de rep&#xe9;rer le mot, de le mettre en gras et de le souligner (par exemple) :&lt;/p&gt;
&lt;p&gt;&lt;font color=&quot;#ffff99&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; With WordApp.ActiveDocument.Content.Find&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; .Text = &amp;quot;Article : &amp;quot;&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; .Forward = False&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; .Execute&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; If .Found = True Then&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; .Parent.Underline = wdUnderlineSingle&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; .Parent.Bold = True&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; End If&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; End With&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Pour placer ces lignes dans le code :&lt;br /&gt;&lt;font color=&quot;#ffff99&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; With WordDoc.Tables(1)&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;For i = 1 To Nbdonn&#xe9;es&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; Texte_&#xe0;_transcrire= &amp;quot;Article : &amp;quot; &amp;amp; Transit(1, i)
&amp;amp; vbcr &amp;amp; Transit(2, i) &amp;amp; vbtab &amp;amp; Transit(3,i)&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; ligne = .Rows.Count&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; .Cell(ligne, 1).Range.InsertAfter Texte_&#xe0;_transcrire&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; With WordApp.ActiveDocument.Content.Find&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;.Text = &amp;quot;Article : &amp;quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;.Forward = False&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;.Execute&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;If .Found = True Then&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; .Parent.Underline = wdUnderlineSingle&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; .Parent.Bold = True&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;End If&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; End With&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;next i&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; end with&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Voil&#xe0;, tout, il est possible, et m&#xea;me certain, que ces lignes peuvent &#xea;tre am&#xe9;lior&#xe9;es, je suis preneur de toutes suggestions. Ce que je peux vous dire, c&apos;est que &#xe7;a &amp;quot;fait le job&amp;quot; dans une applic utilis&#xe9;e quotidiennement dans mon boulot.&lt;/p&gt;
&lt;p&gt;Merci par avance des commentaires que vous me laisserez,&lt;br /&gt;&lt;img border=&quot;0&quot; class=&quot;inlineimg&quot; title=&quot;Smile&quot; src=&quot;http://www.excel-downloads.com/forum/images/smilies/smile.gif&quot; /&gt; tatiak&lt;/p&gt;</description><pubDate>Sun, 28 Jun 2009 08:25:11 GMT</pubDate></item><item><title>&quot;Piloter&quot; Word depuis Excel - 2&#xe8;me partie</title><dc:creator>tatiak</dc:creator><link>http://tatiak.canalblog.com/archives/2009/06/28/14228797.html</link><category>Excel</category><comments>http://tatiak.canalblog.com/archives/2009/06/28/14228797.html#comments</comments><wfw:commentRss>http://tatiak.canalblog.com/feeds/rss/comments/post/14228797/</wfw:commentRss><guid isPermaLink="true">http://tatiak.canalblog.com/archives/2009/06/28/14228797.html</guid><description>&lt;p&gt;Pour continuer les explications du 14 juin, et&amp;nbsp; pour aller plus loin, voici comment compl&#xe9;ter un tableau dans un document Word depuis Excel.&lt;br /&gt;L&apos;id&#xe9;e ici est de mettre en page des donn&#xe9;es Xl en adaptant la taille du tableau word avec la quantit&#xe9; de donn&#xe9;es &#xe0; ins&#xe9;rer.&lt;br /&gt;Nous avons donc cr&#xe9;&#xe9; un document word comme indiqu&#xe9; pr&#xe9;c&#xe9;demment dans lequel figure un tableau. Je vous sugg&#xe8;re de&amp;nbsp; faire un tableau ne contenant qu&apos;une seule ligne qui sera vide (pour cet exemple un tableau d&apos;une seule colonne sera utilis&#xe9;, le principe pour plusieurs est le m&#xea;me)&lt;/p&gt;
&lt;p&gt;Dans un premier temps, les donn&#xe9;es Xl seront lues et plac&#xe9;es dans une variable de &amp;quot;transit&amp;quot; (ici pour l&apos;exemple les donn&#xe9;es sont dans la colonne A):&lt;br /&gt;&lt;font color=&quot;#ffff66&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; Dim Transit() as string, Nbdonn&#xe9;es as integer, i as integer&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;Nbdonn&#xe9;es = Feuil1.Range(&amp;quot;A65000&amp;quot;).End(xlUp).Row&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; Redim Transit(Nbdonn&#xe9;es) &apos; pour dimensionner dynamiquement la variable&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; For i = 1 To Nbdonn&#xe9;es&amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;Transit(i)= Feuil1.cells(i,1).value&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; next i&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Apr&#xe8;s ouverture du fichier word (comme indiqu&#xe9; dans le post pr&#xe9;c&#xe9;dent), on place la premi&#xe8;re donn&#xe9;es dans le tableau (ici table(1)), puis on ajoute &#xe9;ventuellement une nouvelle ligne dans le tableau pour pouvoir placer la donn&#xe9;es suivante :&lt;br /&gt;&lt;font color=&quot;#ffff66&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; With WordDoc.Tables(1)&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; For i = 1 to Nbdonn&#xe9;es&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;ligne = .row.count&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;.Cell(ligne, 1).Range.InsertAfter Transit(i)&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;If i &amp;lt; Nbdonn&#xe9;es Then .Rows.Add&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; Next i&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; end with&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Et voil&#xe0; &#xe0; la suite, il convient de fermer proprement le fichier Word comme indiqu&#xe9; pr&#xe9;cedemment et votre document est mis &#xe0; jour!&lt;/p&gt;
&lt;p&gt;&lt;img border=&quot;0&quot; class=&quot;inlineimg&quot; title=&quot;Smile&quot; src=&quot;http://www.excel-downloads.com/forum/images/smilies/smile.gif&quot; /&gt; tatiak&lt;/p&gt;</description><pubDate>Sun, 28 Jun 2009 07:56:00 GMT</pubDate></item><item><title>&quot;Piloter&quot; Word depuis Excel - 1&#xe8;re partie</title><dc:creator>tatiak</dc:creator><link>http://tatiak.canalblog.com/archives/2009/06/14/14074267.html</link><category>Excel</category><comments>http://tatiak.canalblog.com/archives/2009/06/14/14074267.html#comments</comments><wfw:commentRss>http://tatiak.canalblog.com/feeds/rss/comments/post/14074267/</wfw:commentRss><guid isPermaLink="true">http://tatiak.canalblog.com/archives/2009/06/14/14074267.html</guid><description>&lt;p style=&quot;text-align: justify;&quot;&gt;Quoi de plus confortable de pouvoir g&#xe9;n&#xe9;rer un document mis en page avec Word depuis une base de donn&#xe9;es Excel! En effet, de cette mani&#xe8;re, on profite enti&#xe8;rement de la puissance d&apos;un vrai logiciel de traitement de texte, et on peut aller plus loin qu&apos;une fusion de base, pour &amp;quot;mettre en valeur&amp;quot; nos donn&#xe9;es Excel.&lt;/p&gt;&lt;br /&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;Pour r&#xe9;pondre &#xe0; des demandes multiples, je vous donne ma p&apos;tite m&#xe9;thodologie, en expliquant ici l&apos;insertion de donn&#xe9;es &#xe0; l&apos;emplacement d&apos;un signet (pour le nom du client par exemple) et dans un tableau (pour les articles command&#xe9;s par exemple)&lt;/p&gt;
&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: justify;&quot;&gt;
Donc, pour ce type de besoin, je cr&#xe9;e un document word qui me sert de mod&#xe8;le
(ici dans l&apos;exemple Mod&#xe8;leDocument.doc, situ&#xe9; dans un sous r&#xe9;pertoire
Document), si besoin avec signet (nomm&#xe9; ici &amp;quot;SIGNET_A
CREER_DANS_DOCUMENT_WORD&amp;quot;) et tableau (ici un seul tableau donc
wordDoc.tables(1)).&lt;/p&gt;
&lt;p&gt;
Dans un premier temps, la macro cr&#xe9;e une instance Word et ouvre le mod&#xe8;le :&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;georgia, times new roman, times, serif&quot; color=&quot;#ffff99&quot;&gt;Sub Vers_Word()&lt;br /&gt;Dim NDF As String, NDF2 As String&lt;br /&gt;Dim WordApp As Word.Application&lt;br /&gt;Dim WordDoc As Word.Document&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; NDF = ActiveWorkbook.Path &amp;amp; &amp;quot;\Mod&#xe8;leDocument.doc&amp;quot;&lt;br /&gt;&amp;nbsp; &amp;nbsp; NDF2 = ActiveWorkbook.Path &amp;amp; &amp;quot;\Document&amp;quot; &amp;amp; Sheets(&amp;quot;Feuil1&amp;quot;).Range(&amp;quot;A1&amp;quot;).text &amp;amp; &amp;quot;.doc&amp;quot;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; On Error Resume Next&lt;br /&gt;&amp;nbsp; &amp;nbsp; Set WordApp = CreateObject(&amp;quot;Word.Application&amp;quot;)&lt;br /&gt;&amp;nbsp; &amp;nbsp; Set WordDoc = WordApp.Documents.Open(NDF, ReadOnly:=False)&lt;/font&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: justify;&quot;&gt;A noter : on pr&#xe9;voit d&#xe8;s le d&#xe9;but de sauvegarder le document avec
un nom comportant ici le contenu de la cellule A1 (un nom de client par
exemple) pour ne pas &#xe9;craser le mod&#xe8;le.&lt;br /&gt;
&lt;br /&gt;
Puis il convient d&apos;&#xe9;crire les donn&#xe9;es :&lt;br /&gt;
* pour &#xe9;crire &#xe0; partir du signet &amp;quot;SIGNET_A CREER_DANS_DOCUMENT_WORD&amp;quot; (ici le contenu de la cellule A2 :&lt;/p&gt;
&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;font face=&quot;georgia, times new roman, times, serif&quot; color=&quot;#ffffcc&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;font color=&quot;#ffff99&quot;&gt; With WordApp&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; .Visible = False&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; .Selection.Goto What:=wdGoToBookmark, Name:=&amp;quot;SIGNET_A CREER_DANS_DOCUMENT_WORD&amp;quot;&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; .Selection.TypeText Text:= Sheets(&amp;quot;Feuil1&amp;quot;).Range(&amp;quot;A2&amp;quot;).Value&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;* pour &#xe9;crire dans le tableau 1 ligne 1, colonne 2 (ici le contenu de la cellule A3) : &lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;georgia, times new roman, times, serif&quot; color=&quot;#ffff99&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; With WordDoc.Tables(1)&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;.Cell(1, 2).Range.InsertAfter Sheets(&amp;quot;Feuil1&amp;quot;).Range(&amp;quot;A3&amp;quot;).Value&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; End With&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Ne pas oublier de sauvegarder le document sous le nom d&#xe9;fini pr&#xe9;c&#xe9;demment :&lt;br /&gt;&lt;font color=&quot;#ffff00&quot;&gt;&lt;br /&gt;&lt;font face=&quot;georgia, times new roman, times, serif&quot; color=&quot;#ffffcc&quot;&gt;&amp;nbsp; &lt;font color=&quot;#ffff99&quot;&gt;&amp;nbsp; WordDoc.Application.ActiveDocument.SaveAs NDF2&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Enfin, il convient de fermer le tout proprement et de lib&#xe9;rer la m&#xe9;moire&amp;nbsp; &amp;nbsp;en mettant les variables &#xe0; z&#xe9;ro :&lt;/p&gt;
&lt;p&gt; &lt;font face=&quot;georgia, times new roman, times, serif&quot; color=&quot;#ffff99&quot;&gt;&amp;nbsp; &amp;nbsp;WordApp.Application.Quit&lt;br /&gt;&amp;nbsp; &amp;nbsp; Set WordDoc = Nothing&lt;br /&gt;&amp;nbsp; &amp;nbsp; Set WordApp = Nothing&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Ce qui donne au global :&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;georgia, times new roman, times, serif&quot; color=&quot;#ffff99&quot;&gt;Sub Vers_Word()&lt;br /&gt;Dim NDF As String, NDF2 As String&lt;br /&gt;Dim WordApp As Word.Application&lt;br /&gt;Dim WordDoc As Word.Document&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; NDF = ActiveWorkbook.Path &amp;amp; &amp;quot;\Mod&#xe8;leDocument.doc&amp;quot;&lt;br /&gt;&amp;nbsp; &amp;nbsp; NDF2 = ActiveWorkbook.Path &amp;amp; &amp;quot;\Document&amp;quot; &amp;amp; Sheets(&amp;quot;Feuil1&amp;quot;).Range(&amp;quot;A1&amp;quot;).text &amp;amp; &amp;quot;.doc&amp;quot;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; On Error Resume Next&lt;br /&gt;&amp;nbsp; &amp;nbsp; Set WordApp = CreateObject(&amp;quot;Word.Application&amp;quot;)&lt;br /&gt;&amp;nbsp; &amp;nbsp; Set WordDoc = WordApp.Documents.Open(NDF, ReadOnly:=False)&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; With WordApp&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; .Visible = False&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; .Selection.Goto What:=wdGoToBookmark, Name:=&amp;quot;SIGNET_A CREER_DANS_DOCUMENT_WORD&amp;quot;&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; .Selection.TypeText Text:= Sheets(&amp;quot;Feuil1&amp;quot;).Range(&amp;quot;A2&amp;quot;).Value&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; With WordDoc.Tables(1)&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;.Cell(1, 2).Range.InsertAfter Sheets(&amp;quot;Feuil1&amp;quot;).Range(&amp;quot;A3&amp;quot;).Value&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; End With&lt;br /&gt;&amp;nbsp; &amp;nbsp; End With&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; WordDoc.Application.ActiveDocument.SaveAs NDF2&lt;br /&gt;&amp;nbsp; &amp;nbsp; WordApp.Application.Quit&lt;br /&gt;&amp;nbsp; &amp;nbsp; Set WordDoc = Nothing&lt;br /&gt;&amp;nbsp; &amp;nbsp; Set WordApp = Nothing&lt;br /&gt;&lt;br /&gt;End Sub&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;La r&#xe9;f&#xe9;rence MS Word machin est activ&#xe9;e bien s&#xfb;r!&lt;br /&gt;
Et voili! &lt;br /&gt;
&lt;img border=&quot;0&quot; src=&quot;http://www.excel-downloads.com/forum/images/smilies/smile.gif&quot; title=&quot;Smile&quot; class=&quot;inlineimg&quot; /&gt; tatiak&lt;/p&gt;
&lt;p style=&quot;text-align: justify;&quot;&gt;PS : Dans le post &#xe0; venir, je vous expliquerais comment faire de la mise en forme du texte contenu dans une case d&apos;un tableau (toujours depuis XL dans un document Word), d&#xe8;s son int&#xe9;gration.&lt;/p&gt;
&lt;p style=&quot;text-align: justify;&quot;&gt;PS2 : pour JC, il s&apos;agit bien ici de VBA Excel! &lt;img border=&quot;0&quot; src=&quot;http://www.excel-downloads.com/forum/images/smilies/smile.gif&quot; title=&quot;Smile&quot; class=&quot;inlineimg&quot; /&gt; &lt;/p&gt;
&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;</description><pubDate>Sun, 14 Jun 2009 13:13:00 GMT</pubDate></item><item><title>Fichiers .mod</title><dc:creator>tatiak</dc:creator><link>http://tatiak.canalblog.com/archives/2009/03/29/13178837.html</link><category>Excel</category><comments>http://tatiak.canalblog.com/archives/2009/03/29/13178837.html#comments</comments><wfw:commentRss>http://tatiak.canalblog.com/feeds/rss/comments/post/13178837/</wfw:commentRss><guid isPermaLink="true">http://tatiak.canalblog.com/archives/2009/03/29/13178837.html</guid><description>&lt;p&gt;Certains appareils de capture vid&#xe9;o g&#xe9;n&#xe8;rent des fichiers au format &lt;strong&gt;.mod&lt;/strong&gt;. Ces fichiers sont en fait des fichiers &lt;strong&gt;mpeg&lt;/strong&gt;, mais dont l&apos;extension est &amp;quot;personnalis&#xe9;e&amp;quot; par le constructeur de l&apos;appareil pour faire croire &#xe0; un format propri&#xe9;taire.&lt;br /&gt;Lors du transfert de ce type de fichier vers son PC, l&apos;exercice consiste &#xe0; simplement modifier l&apos;extension &lt;strong&gt;.mod&lt;/strong&gt; en &lt;strong&gt;.mpg&lt;/strong&gt; &lt;br /&gt;Plut&#xf4;t que de faire cette modification &#xe0; la main pour l&apos;ensemble des fichiers &#xe0; traiter, rien de tel que quelques lignes de VBS pour automatiser ces op&#xe9;rations. (Attention ceci n&apos;est pas du VBA, mais du VBS ;)).&lt;/p&gt;
&lt;p&gt;&lt;font color=&quot;#ffff99&quot;&gt;Option Explicit&lt;br /&gt;&lt;br /&gt;Const WINDOW_HANDLE = 0&lt;br /&gt;Const NO_OPTIONS = 0&lt;br /&gt;&lt;br /&gt;Dim fso, Chemin, Fichier, FichierItem&lt;br /&gt;Dim&amp;nbsp; NomF, NouveauNomF&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; Chemin =&amp;nbsp; SelectionDossier(&amp;quot;S&#xe9;lectionner le dossier contenant les fichiers &#xe0; convertir &amp;quot;,&amp;quot;&amp;quot; )&amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; if not Chemin = &amp;quot;ANNULATION&amp;quot;&amp;nbsp; then &lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; on error resume next&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; beep&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; Set fso = CreateObject(&amp;quot;Scripting.FileSystemObject&amp;quot;)&amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; For Each Fichier In fso.GetFolder(Chemin).Files&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;Set FichierItem = fso.GetFile(Fichier)&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;NomF = Fichier.name&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;NouveaunomF = Replace(NomF, &amp;quot;.mod&amp;quot;, &amp;quot;.mpg&amp;quot;)&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;fso.MoveFile Chemin &amp;amp; NomF , Chemin &amp;amp; NouveauNomF&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; next&lt;br /&gt;&amp;nbsp; &amp;nbsp; end if&lt;br /&gt;&lt;br /&gt;Function SelectionDossier (message,directory)&lt;br /&gt;Dim objShell, objFolder, objFolderItem&lt;br /&gt;&amp;nbsp; &amp;nbsp; Set objShell = CreateObject(&amp;quot;Shell.Application&amp;quot; )&lt;br /&gt;&amp;nbsp; &amp;nbsp; Set objFolder = objShell.BrowseForFolder (WINDOW_HANDLE, message , NO_OPTIONS, directory)&lt;br /&gt;&amp;nbsp; &amp;nbsp; On Error Resume Next&lt;br /&gt;&amp;nbsp; &amp;nbsp; Set objFolderItem = objFolder.Self&lt;br /&gt;&amp;nbsp; &amp;nbsp; If Err &amp;lt;&amp;gt; 0 Then&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; SelectionDossier = &amp;quot;ANNULATION&amp;quot;&lt;br /&gt;&amp;nbsp; &amp;nbsp; Else&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; SelectionDossier = objFolderItem.Path &amp;amp; &amp;quot;\&amp;quot;&lt;br /&gt;&amp;nbsp; &amp;nbsp; end if&lt;br /&gt;&amp;nbsp; &amp;nbsp; On Error GoTo 0&lt;br /&gt;&amp;nbsp; &amp;nbsp; set objShell = nothing&lt;br /&gt;&amp;nbsp; &amp;nbsp; set objFolder = nothing&lt;br /&gt;&amp;nbsp; &amp;nbsp; set objFolderItem = nothing&lt;br /&gt;End Function&lt;/font&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://storage.canalblog.com/03/30/244825/37604583.zip&quot;&gt;T&#xe9;l&#xe9;charger le fichier : ConversionMPG.zip&lt;/a&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&lt;a href=&quot;http://storage.canalblog.com/03/30/244825/37604583.zip&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;
:) tatiak&lt;/p&gt;</description><pubDate>Sun, 29 Mar 2009 09:13:00 GMT</pubDate></item><item><title>Danses Noires / Blanche Am&#xe9;rique</title><dc:creator>tatiak</dc:creator><link>http://tatiak.canalblog.com/archives/2009/03/28/13166931.html</link><category>Humeur</category><comments>http://tatiak.canalblog.com/archives/2009/03/28/13166931.html#comments</comments><wfw:commentRss>http://tatiak.canalblog.com/feeds/rss/comments/post/13166931/</wfw:commentRss><guid isPermaLink="true">http://tatiak.canalblog.com/archives/2009/03/28/13166931.html</guid><description>&lt;p style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://storage.canalblog.com/67/21/244825/37566135.jpg&quot; target=&quot;_blank&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://storage.canalblog.com/68/75/244825/37566147.jpg&quot; target=&quot;_blank&quot;&gt;&lt;img height=&quot;250&quot; border=&quot;0&quot; width=&quot;194&quot; alt=&quot;DansesNoires&quot; src=&quot;http://storage.canalblog.com/68/75/244825/37566147_p.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;CND, 1, rue Victor HUGO 93500 Pantin&lt;/p&gt;</description><pubDate>Sat, 28 Mar 2009 08:59:00 GMT</pubDate></item><item><title>Big Brother</title><dc:creator>tatiak</dc:creator><link>http://tatiak.canalblog.com/archives/2009/03/28/13166137.html</link><category>Humeur</category><comments>http://tatiak.canalblog.com/archives/2009/03/28/13166137.html#comments</comments><wfw:commentRss>http://tatiak.canalblog.com/feeds/rss/comments/post/13166137/</wfw:commentRss><guid isPermaLink="true">http://tatiak.canalblog.com/archives/2009/03/28/13166137.html</guid><description>&lt;p style=&quot;text-align: center;&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://storage.canalblog.com/51/80/244825/37563670.jpg&quot;&gt;&lt;img height=&quot;325&quot; border=&quot;0&quot; width=&quot;450&quot; src=&quot;http://storage.canalblog.com/51/80/244825/37563670_p.jpg&quot; alt=&quot;Maison&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Coucou!&lt;/p&gt;</description><pubDate>Sat, 28 Mar 2009 07:17:18 GMT</pubDate></item><item><title>EEE Pc T91</title><dc:creator>tatiak</dc:creator><link>http://tatiak.canalblog.com/archives/2009/01/24/12202774.html</link><category>Netbook</category><comments>http://tatiak.canalblog.com/archives/2009/01/24/12202774.html#comments</comments><wfw:commentRss>http://tatiak.canalblog.com/feeds/rss/comments/post/12202774/</wfw:commentRss><guid isPermaLink="true">http://tatiak.canalblog.com/archives/2009/01/24/12202774.html</guid><description>&lt;p&gt;Voici une vid&#xe9;o de l&apos;interface du futur nouveau Eee Pc T91, &#xe0; &#xe9;cran tactile.
&lt;br /&gt;Je suis bluff&#xe9;!Je sens que je vais encore craquer sur ce Eee qui devrait &#xea;tre disponible sur le premier semestre 2009!&lt;/p&gt;
&lt;p&gt;&lt;object height=&quot;344&quot; width=&quot;425&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/5mvtU4xZPvQ&amp;amp;color1=0xb1b1b1&amp;amp;color2=0xcfcfcf&amp;amp;hl=fr&amp;amp;feature=player_embedded&amp;amp;fs=1&quot; /&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot; /&gt;&lt;embed height=&quot;344&quot; width=&quot;425&quot; src=&quot;http://www.youtube.com/v/5mvtU4xZPvQ&amp;amp;color1=0xb1b1b1&amp;amp;color2=0xcfcfcf&amp;amp;hl=fr&amp;amp;feature=player_embedded&amp;amp;fs=1&quot; type=&quot;application/x-shockwave-flash&quot; allowfullscreen=&quot;true&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/p&gt;</description><pubDate>Sat, 24 Jan 2009 08:13:00 GMT</pubDate></item><item><title>Synchronisation Dossiers et Sous-Dossier - VBScript</title><dc:creator>tatiak</dc:creator><link>http://tatiak.canalblog.com/archives/2008/11/29/11558055.html</link><category>Excel</category><comments>http://tatiak.canalblog.com/archives/2008/11/29/11558055.html#comments</comments><wfw:commentRss>http://tatiak.canalblog.com/feeds/rss/comments/post/11558055/</wfw:commentRss><guid isPermaLink="true">http://tatiak.canalblog.com/archives/2008/11/29/11558055.html</guid><description>&lt;p style=&quot;text-align: center;&quot;&gt;&lt;font color=&quot;#ffcc66&quot;&gt;&lt;strong&gt;Avant propos : Et non ce n&apos;est pas du VBA pour Excel, mais du VBS qui &amp;quot;marche tout seul&amp;quot; ;)&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Pour faire suite &#xe0; mon post pr&#xe9;c&#xe9;dent, et pour aller plus loin dans les contraintes, voici la version suivante du script de synchronisation. En effet, le point &amp;quot;faible&amp;quot; du script pr&#xe9;c&#xe9;dent est qu&apos;il ne traitait pas les sous-r&#xe9;pertoires du dossier choisi. &lt;br /&gt;Voici donc un outil plus complet, capable de traiter les fichiers, les sous r&#xe9;pertoires et les fichiers des sous r&#xe9;pertoires d&apos;un dossier quelconque &#xe0; choisir.&lt;/p&gt;
&lt;p style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://storage.canalblog.com/85/90/244825/33045296.zip&quot;&gt;T&#xe9;l&#xe9;chargement de : Synchronisation_DOSSIERS.zip&lt;/a&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&lt;/p&gt;
&lt;p&gt;
Dans le code, vous remarquerez 2 fonctions qui sont le &amp;quot;moteur&amp;quot; de l&apos;outil. Une premi&#xe8;re liste les fichiers du dossier &amp;quot;source&amp;quot; :&lt;br /&gt;&lt;font color=&quot;#ffff99&quot;&gt;Function ListerDossier(Chemin)&lt;br /&gt;Dim Fso, SousRepertoire, SousFichier, SousFichierItem&lt;br /&gt;&amp;nbsp; &amp;nbsp; if right(Chemin, 1) &amp;lt;&amp;gt; &amp;quot;\&amp;quot; then Chemin = Chemin &amp;amp; &amp;quot;\&amp;quot;&lt;br /&gt;&amp;nbsp; &amp;nbsp; On Error Resume Next&lt;br /&gt;&amp;nbsp; &amp;nbsp; Set Fso = CreateObject(&amp;quot;Scripting.FileSystemObject&amp;quot;)&lt;br /&gt;&amp;nbsp; &amp;nbsp; For Each SousRepertoire In Fso.GetFolder(Chemin).SubFolders&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; ListerDossier SousRepertoire.Path&lt;br /&gt;&amp;nbsp; &amp;nbsp; Next&lt;br /&gt;&amp;nbsp; &amp;nbsp; For Each SousFichier In Fso.GetFolder(Chemin).Files&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; Set SousFichierItem = Fso.GetFile(SousFichier)&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; nbfichiers = nbfichiers +1&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; ReDim Preserve Tableau(3, nbfichiers)&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; Tableau(1, nbfichiers) = replace (Chemin, Chemin1 , &amp;quot;&amp;quot;)&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; Tableau(2, nbfichiers) = SousFichier.Name&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; Tableau(3, nbfichiers) = SousFichierItem.DateLastModified&lt;br /&gt;&amp;nbsp; &amp;nbsp; next&lt;br /&gt;End Function&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;L&apos;autre fonction liste le contenu du dossier &amp;quot;cible&amp;quot; et effectue le traitement de copie et de mise &#xe0; jour du contenu de la &amp;quot;source&amp;quot; et de la &amp;quot;cible&amp;quot; :&lt;br /&gt;&lt;font color=&quot;#ffff99&quot;&gt;Function ComparerFichier(Chemin)&lt;br /&gt;Dim Fso, SousRepertoire, SousFichier, SousFichierItem&lt;br /&gt;&amp;nbsp; &amp;nbsp; if right(Chemin, 1) &amp;lt;&amp;gt; &amp;quot;\&amp;quot; then Chemin = Chemin &amp;amp; &amp;quot;\&amp;quot;&lt;br /&gt;&amp;nbsp; &amp;nbsp; On Error Resume Next&lt;br /&gt;&amp;nbsp; &amp;nbsp; Set Fso = CreateObject(&amp;quot;Scripting.FileSystemObject&amp;quot;)&lt;br /&gt;&amp;nbsp; &amp;nbsp; For Each SousRepertoire In Fso.GetFolder(Chemin).SubFolders&amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; if not Fso.FolderExists(Chemin1 &amp;amp; sousrepertoire.name) then Fso.CreateFolder (Chemin1 &amp;amp; sousrepertoire.name)&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; ComparerFichier SousRepertoire.Path&lt;br /&gt;&amp;nbsp; &amp;nbsp; Next&lt;br /&gt;&amp;nbsp; &amp;nbsp; for i = 1 to nbfichiers&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; For Each SousFichier In Fso.GetFolder(Chemin).Files&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;Set SousFichierItem = Fso.GetFile(SousFichier)&amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;if not Fso.FileExists(Chemin1 &amp;amp; replace(Chemin, Chemin2, &amp;quot;&amp;quot;) &amp;amp; SousFichier.name) then&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; Fso.CopyFile Chemin &amp;amp; SousFichier.Name ,&amp;nbsp; Chemin1 &amp;amp; replace(Chemin, Chemin2, &amp;quot;&amp;quot;), true&amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;end if&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;if tableau(1,i) = replace(Chemin, Chemin2, &amp;quot;&amp;quot;) and tableau(2,i) = SousFichier.name then&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; If CDate(tableau(3,i)) &amp;gt; CDate(SousFichierItem.DateLastModified) Then&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; Fso.CopyFile Chemin1 &amp;amp; replace(Chemin, Chemin2, &amp;quot;&amp;quot;) &amp;amp; tableau(2,i) ,&amp;nbsp; Chemin2 &amp;amp; replace(Chemin, Chemin2, &amp;quot;&amp;quot;), true&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; else&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; Fso.CopyFile Chemin2 &amp;amp; replace(Chemin, Chemin2, &amp;quot;&amp;quot;) &amp;amp; tableau(2,i) ,&amp;nbsp; Chemin1 &amp;amp; tableau(1,i) , true&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; end if&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;end if&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; next&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; if&amp;nbsp; not Fso.FileExists(Chemin2 &amp;amp; tableau(1,i) &amp;amp; tableau(2,i)) then&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;Fso.CopyFile Chemin1 &amp;amp; tableau(1,i) &amp;amp; tableau(2,i) ,&amp;nbsp; Chemin2 &amp;amp; tableau(1,i), true&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; end if&lt;br /&gt;&amp;nbsp; &amp;nbsp; next&lt;br /&gt;End Function&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Voil&#xe0; tout, n&apos;h&#xe9;sitez pas &#xe0; me faire part de vos remarques si vous trouvez un bug!&lt;br /&gt;:) tatiak&lt;/p&gt;
</description><pubDate>Sat, 29 Nov 2008 11:20:00 GMT</pubDate></item></channel></rss>