Community
hi,
This one work:
If L(i) = 1 Then oOcc.RenderStyle = _invApp.ActiveDocument.RenderStyles.Item("Red") If L(i) = 2 Then oOcc.RenderStyle = _invApp.ActiveDocument.RenderStyles.Item("Yellow")
But I want to change like this and it not work:
Lcolor(1)="Red" Lcolor(2)="Yellow" L(2)=1 L(1)=2 for i=1 to 2 oOcc.RenderStyle = _invApp.ActiveDocument.RenderStyles.Item(Lcolor(L(i))) next
What's wrong?
Thank for help
John
Solved! Go to Solution.
Solved by nagwani. Go to Solution.