M
mrodwell
I am using the below code in a Add button on a userform.
'Vat box'
If chkVAT = True Then
Selection.GoTo what:=wdGoToBookmark, Name:="vat"
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty,
Text:= _
"=c6 * 17.5% \#""#,##0.0""", PreserveFormatting:=False
End If
This works a treat and when the tick is in the box The VAT is worked
out correctly...BUT when there is no tick it still adds the VAT on i
have tried to add a If chkVAT = false then style command but it still
adds on the VAT...have you any ideas where i have gone wrong.
Matthew.
thanks in advance
'Vat box'
If chkVAT = True Then
Selection.GoTo what:=wdGoToBookmark, Name:="vat"
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty,
Text:= _
"=c6 * 17.5% \#""#,##0.0""", PreserveFormatting:=False
End If
This works a treat and when the tick is in the box The VAT is worked
out correctly...BUT when there is no tick it still adds the VAT on i
have tried to add a If chkVAT = false then style command but it still
adds on the VAT...have you any ideas where i have gone wrong.
Matthew.
thanks in advance