P
Paul B
Hi,
I'm trying to Return the value of the currently selected
background shading color. This will be the color that was last
used for background shading. This will allow me to set the b/g
shading color on the fly, then use it persistently via code until
I manually change it.
Word knows that color because it is displayed on the Shading
icon, but the problem I'm running into is that VBA requires an
object to work from, and I've found no general object that allows
for b/g shading. So something like:
Dim shading1 As Shading
Dim returnValue As WdColor
returnValue = Shading1.BackgroundPatternColor
which comes courtesy of MSDN, faults out with a No Object error.
So, am I stuck with hard coding the shading color?
Thanks,
p.
I'm trying to Return the value of the currently selected
background shading color. This will be the color that was last
used for background shading. This will allow me to set the b/g
shading color on the fly, then use it persistently via code until
I manually change it.
Word knows that color because it is displayed on the Shading
icon, but the problem I'm running into is that VBA requires an
object to work from, and I've found no general object that allows
for b/g shading. So something like:
Dim shading1 As Shading
Dim returnValue As WdColor
returnValue = Shading1.BackgroundPatternColor
which comes courtesy of MSDN, faults out with a No Object error.
So, am I stuck with hard coding the shading color?
Thanks,
p.