Bekijk de onderstaande video om te zien hoe je onze site als een web app op je startscherm installeert.
Opmerking: Deze functie is mogelijk niet beschikbaar in sommige browsers.
Waarom een tekstvak en waarom geen documentvariabele ?
Kijk eens naar "afdruk samenvoegen" in Word tabblad verzendlijsten
Dat staat toch wel ergens op je PC?
Je kiest eerst iets uit de lijst onder afdruk samenvoegen en daarna onder Adressen Selecteren: bestaande lijst gebruiken en dan zoek je je Excel bestand op
Sub M_snb()
ActiveDocument.Content = String(20, vbCr)
ActiveDocument.Fields.Add ActiveDocument.Paragraphs(1).Range, 64, "testdatum"
ActiveDocument.Variables("testdatum") = "aaaaaaaa"
With GetObject("G:\OF\voorbeeld.xlsx")
ActiveDocument.Variables("testdatum") = .sheets(1).Cells(3, 2).Value
.Close 0
End With
ActiveDocument.Fields.Update
End Sub
Sub cmbRapport_Click()
If ActiveSheet.Range("B3").Value = "x" Then
Call Rapportinvullenmettabel1
End If
End Sub
Module 2:
Function Rapportinvullenmettabel1()
Dim doc1 As Word.Document
Dim appword As Word.Application
Set appword = GetObject(, "word.application")
Set appword = New Word.Application
appword.Visible = True
ActiveDocument.Content = String(20, vbCr)
ActiveDocument.Fields.Add ActiveDocument.Paragraphs(1).Range, 64, "TESTDATUM"
ActiveDocument.Variables("TESTDATUM") = "aaaaaaaa"
With GetObject("C:\Users\Arno\Desktop\MULTI EXCEL ICT\IndaChem Liquids testrapport1.dotx")
ActiveDocument.Variables("TESTDATUM") = .Sheets(1).Cells(3, 2).Value
.Close 0
End With
ActiveDocument.Fields.Update
End Function
End Sub
Sub cmbRapport_Click()
If ActiveSheet.Range("B3").Value = "x" Then
with getobject("G:\OF\voorbeeld.docx")
.variables("testdatum")=activesheet.cells(3,2)
.fields.update
.windows(1).visible=true
.close -1
end with
end if
End Sub
We gebruiken essentiële cookies om deze site te laten werken, en optionele cookies om de ervaring te verbeteren.