Im trying to resize some font in a V5 textbox to a size different than the rest of the textbox.
Example is: "Sheet 1(size3.5) of(size1.5) 20(size3.5)"
V5 is defaulted to size 3.5 so no problem there. when i try to resize the "of" the method in the documentation does not function properly. I've tried web searches, the examples given do not work either.
Code:
(I need the orange highlighted resized)
Dim SheetNum
Set SheetNum = TitleBlockTexts.GetItem("TitleBlock_Text_Sheet")
'TitleBlock_Text_Sheet is the name of the textbox I'm editing
Dim SheetOfText As Double
SheetOfText = "OF"
Dim OfText As Double
OfText = SheetOfText.Size = 1.5
SheetNum.Text = Title_Block.Current_Sheet_TB.Value + " " + [highlight #F57900]OfText[/highlight] + " " + Title_Block.Total_Sheet_TB.Value
Ive tried:
SheetOfText.setfontsize 0,0,1.5 doesn't work
SheetOfText.text.font.size = 1.5 doesn't work
OfText.changefontsize 0,0,1.5 (also with a dim assigned 1.5 value)
I usually get Object required or invalid qualifier when trying different things
Example is: "Sheet 1(size3.5) of(size1.5) 20(size3.5)"
V5 is defaulted to size 3.5 so no problem there. when i try to resize the "of" the method in the documentation does not function properly. I've tried web searches, the examples given do not work either.
Code:
(I need the orange highlighted resized)
Dim SheetNum
Set SheetNum = TitleBlockTexts.GetItem("TitleBlock_Text_Sheet")
'TitleBlock_Text_Sheet is the name of the textbox I'm editing
Dim SheetOfText As Double
SheetOfText = "OF"
Dim OfText As Double
OfText = SheetOfText.Size = 1.5
SheetNum.Text = Title_Block.Current_Sheet_TB.Value + " " + [highlight #F57900]OfText[/highlight] + " " + Title_Block.Total_Sheet_TB.Value
Ive tried:
SheetOfText.setfontsize 0,0,1.5 doesn't work
SheetOfText.text.font.size = 1.5 doesn't work
OfText.changefontsize 0,0,1.5 (also with a dim assigned 1.5 value)
I usually get Object required or invalid qualifier when trying different things