Message 1 of 3

Not applicable
02-22-2013
03:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.