Dim appwrd As Word.Application Dim docword As Word.Document Application.WindowState = xlMinimized Set appwrd = Word.Application appwrd.Visible = True
Set docword = appwrd.documents.Add(template:="i:...\itinera_aaanormal.dot", newtemplate:=False, documenttype:=0)
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionApplication.WindowState = xlMinimized Set appwrd = CreateObject("Word.Application") appwrd.Visible = True Set docword = appwrd.documents.Add(template:="i:...\itinera_aaanormal.dot", newtemplate:=False, documenttype:=0) Application.Quit
Sub Main() altern.Show End Sub
Sub Main() altern.Show End Sub
Private Sub UserForm_Initialize() Dim agentvérif(20) r = 1 For Each adoc In Documents If adoc.Name = "aaaNormal.dot" Then GoTo line963 If adoc.Name = "itinera_aaanormal.dot" Then GoTo line963 agentvérif(r) = adoc.Name ComboBox1.AddItem agentvérif(r) r = r + 1 line963: Next adoc ComboBox1.Value = agentvérif(1) End Sub