L
Lee Kiwiflame
I am wanting to insert a file depending on which option button is selected.
I am using DOCVARIABLES within the template and need to insert a file if the
"OptNoOther" is True.
The code I have is:
If frmAudit.OptNoOther = True Then
ActiveDocument.Select.Variables ("additional")
With Selection
.InsertFile
FileName:="M:\PROCESSES\Documents\Templates\Building\BWOFInsert.doc"
End With
The above code does not work and I am new to VBA so I'm not sure what code I
should be using.
Help is appreciated.
I am using DOCVARIABLES within the template and need to insert a file if the
"OptNoOther" is True.
The code I have is:
If frmAudit.OptNoOther = True Then
ActiveDocument.Select.Variables ("additional")
With Selection
.InsertFile
FileName:="M:\PROCESSES\Documents\Templates\Building\BWOFInsert.doc"
End With
The above code does not work and I am new to VBA so I'm not sure what code I
should be using.
Help is appreciated.