D
david
Hello everyone,
After much research, I've finally figured out why the parameters I was
giving my script for positioning InlineShapes according to certain
values was slightly off: .Position only takes integers! After digging
some more, I came across someone's brilliant idea to use the old
WordBasic command syntax which supposedly doesn't have this problem.
But I can't get the commands to work :-(
[snip some code]
Dim Form As InlineShape
Dim iVar As Variant
Dim Feld1() As String
Open ActiveDocument.Path + "\" & sCount & ".txt" For Input As #1
Text = Input(LOF(1), #1)
Feld1 = Split(Text, vbCrLf)
Close #1
Anz = ActiveDocument.InlineShapes.Count
For i = 1 To Anz
iVar = Val(Feld1(i - 1))
Set Form = ActiveDocument.InlineShapes(i)
' Form.Range.Font.Position = iVar
WordBasic.FormatFont Position:=iVar
Next i
Is there a different sort of command syntax involved? Must I "select"
the InlineShape first? Or am I barking up the wrong tree?
Thanks in advance
David
After much research, I've finally figured out why the parameters I was
giving my script for positioning InlineShapes according to certain
values was slightly off: .Position only takes integers! After digging
some more, I came across someone's brilliant idea to use the old
WordBasic command syntax which supposedly doesn't have this problem.
But I can't get the commands to work :-(
[snip some code]
Dim Form As InlineShape
Dim iVar As Variant
Dim Feld1() As String
Open ActiveDocument.Path + "\" & sCount & ".txt" For Input As #1
Text = Input(LOF(1), #1)
Feld1 = Split(Text, vbCrLf)
Close #1
Anz = ActiveDocument.InlineShapes.Count
For i = 1 To Anz
iVar = Val(Feld1(i - 1))
Set Form = ActiveDocument.InlineShapes(i)
' Form.Range.Font.Position = iVar
WordBasic.FormatFont Position:=iVar
Next i
Is there a different sort of command syntax involved? Must I "select"
the InlineShape first? Or am I barking up the wrong tree?
Thanks in advance
David