Message 1 of 3
Use a parameter with item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I have a problem with using a parameter as item("xxx") :
Dim oPart as PartDocument
Dim oRenderstyle as Renderstyle
Dim toto as String
'This is ok :
Set oRenderstyle = oPart.RenderStyles.item("Red")
'This is NOT ok :
toto = "Red"
Set oRenderstyle = oPart.RenderStyles.item(toto)
Could you tell me where is the problem ? Thanks !