Shred Dude
05-02-2008, 01:04 PM
I'm trying to shade a formfield via code, and having trouble.
With my macro recorder on ,I can't even do what i can do without it on. If I float my cursor over a formfield, a get a small window that allows me to set various properties of that formfield. including shading. I'd like to do this with code.
If I select the formfield and do:
selection.Shading.BackgroundPatternColor =wdColorRed
nothing happens. Unless the formfield is within a table cell, then the whole cell gets shaded, but not the formfield's gray box.
I haven't been able to find that little window in the WdWordDialog collection to attempt that route. I was hoping to be able to do wiht code what I can do manually.
Can anyone help?
My goal is to go through a document and shade each formfieild where formfield.result = "".
With my macro recorder on ,I can't even do what i can do without it on. If I float my cursor over a formfield, a get a small window that allows me to set various properties of that formfield. including shading. I'd like to do this with code.
If I select the formfield and do:
selection.Shading.BackgroundPatternColor =wdColorRed
nothing happens. Unless the formfield is within a table cell, then the whole cell gets shaded, but not the formfield's gray box.
I haven't been able to find that little window in the WdWordDialog collection to attempt that route. I was hoping to be able to do wiht code what I can do manually.
Can anyone help?
My goal is to go through a document and shade each formfieild where formfield.result = "".