O
Olaf Rabbachin
Hi folks,
I'm using the Autosize-property of a label that has been created by code:
With objs.Shapes.AddLabel(msoTextOrientationHorizontal, _
lngMargin_H, lngNextControl_Top, 10, conLabel_Height).TextFrame
.TextRange.Text = "some text"
.TextRange.Font.Size = 10
.TextRange.Font.Bold = msoTrue
.AutoSize = ppAutoSizeShapeToFitText
End With
However, the .AutoSize doesn't really work - sometimes it will and
sometimes it won't (the label will be the 10pts wide that it had been
created with).
Since a hyperlink is being added thereafter I'd like the labels to not use
any space that is not occupied by the labels' text-portion.
Am I missing something here?
Thanks in advance for any suggestions!
Cheers,
Olaf
I'm using the Autosize-property of a label that has been created by code:
With objs.Shapes.AddLabel(msoTextOrientationHorizontal, _
lngMargin_H, lngNextControl_Top, 10, conLabel_Height).TextFrame
.TextRange.Text = "some text"
.TextRange.Font.Size = 10
.TextRange.Font.Bold = msoTrue
.AutoSize = ppAutoSizeShapeToFitText
End With
However, the .AutoSize doesn't really work - sometimes it will and
sometimes it won't (the label will be the 10pts wide that it had been
created with).
Since a hyperlink is being added thereafter I'd like the labels to not use
any space that is not occupied by the labels' text-portion.
Am I missing something here?
Thanks in advance for any suggestions!
Cheers,
Olaf