tomy7
Messages postés62Date d'inscriptionmardi 22 janvier 2008StatutMembreDernière intervention25 avril 2008
-
25 janv. 2008 à 14:38
cs_MPi
Messages postés3877Date d'inscriptionmardi 19 mars 2002StatutMembreDernière intervention17 août 2018
-
25 janv. 2008 à 23:27
bonjour,
je pense que la commance pour ouvrir un doc word depuis excel est ceci:
Sub openword()
Dim appword As Word.Application
Set appword = New Word.Application
Application.DisplayAlerts = True
appword.ShowMe
appword.Visible = True
appword.Documents.Open Filename:="D:\My Documents\template\Label\label.doc"
End Sub
mais lorsque je teste ceci une fenetre apparait me disant:"User defined type not defined"
<?xml:namespace prefix v ns "urn:schemas-microsoft-com:vml" /??><v:shapetype id="_x0000_t75" stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"> <v:stroke joinstyle="miter"></v:stroke><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"></v:f><v:f eqn="sum @0 1 0"></v:f><v:f eqn="sum 0 0 @1"></v:f><v:f eqn="prod @2 1 2"></v:f><v:f eqn="prod @3 21600 pixelWidth"></v:f><v:f eqn="prod @3 21600 pixelHeight"></v:f><v:f eqn="sum @0 0 1"></v:f><v:f eqn="prod @6 1 2"></v:f><v:f eqn="prod @7 21600 pixelWidth"></v:f><v:f eqn="sum @8 21600 0"></v:f><v:f eqn="prod @7 21600 pixelHeight"></v:f><v:f eqn="sum @10 21600 0"></v:f></v:formulas><v:path o:connecttype="rect" gradientshapeok="t" o:extrusionok="f"></v:path><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /??><o:lock aspectratio="t" v:ext="edit"></o:lock></v:shapetype><v:shape id="_x0000_i1025" style="WIDTH: 216.6pt; HEIGHT: 132.6pt" type="#_x0000_t75"><v:imagedata cropright="23180f" cropleft=".375" cropbottom="23572f" croptop="27340f" o:title="" src="file:///C:\temp\msohtml1\02\clip_image001.png"></v:imagedata></v:shape>
Que dois je faire? Help........
merci
tomy7
Messages postés62Date d'inscriptionmardi 22 janvier 2008StatutMembreDernière intervention25 avril 2008 25 janv. 2008 à 15:35
probleme resolu comme un grand!
solutions
ds vba
aller ds tools
puis reference
puis cocher MS DAO 3.6 object library
ainsi que MS word 11.0 object library
voila tout