P
PiusSchuler
Within a UserForm I go the user to select a LineWidth, which then is
saved in a registry key e.g. wdLineWidth300pt. This value then should
be used to be asigned within a Word macro to assign the LineWidth. The
problem is, that I do not get back a constant but a VariantString. Is
it possible to convert the string bach to the constant?
With .Borders(wdBorderHorizontal)
.LineStyle = wdLineStyleSingle
.LineWidth = GetSetting("TLKey", "Setting", "LineWidth")
.Color = wdColorAutomatic
End With
saved in a registry key e.g. wdLineWidth300pt. This value then should
be used to be asigned within a Word macro to assign the LineWidth. The
problem is, that I do not get back a constant but a VariantString. Is
it possible to convert the string bach to the constant?
With .Borders(wdBorderHorizontal)
.LineStyle = wdLineStyleSingle
.LineWidth = GetSetting("TLKey", "Setting", "LineWidth")
.Color = wdColorAutomatic
End With