#1
|
|||
|
|||
Word 2010 Page Color not working in macro
Has anyone noticed that trying to set the Page Color from within a macro does not appear to work. After the macro runs the page color remains unchanged, but if I go to the Page Color setting window, all the values I specified are there. It's just that Word 2010 doesn't do anyrthing with them. Any suggestion would be most appreciated. Karen |
#2
|
|||
|
|||
I just tried a simple one, using the recorder and one of the default colors. Worked like a charm. Is yours part of a longer macro, in which something else might be amiss?
|
#3
|
|||
|
|||
Thanks very much for the reply.
Yes, the page color was part of a longer macro, but when I read your reply I tried creating a macro to just change the page color ... and it failed. Here is the macro; ActiveDocument.Background.Fill.Visible = msoTrue ActiveDocument.Background.Fill.ForeColor.RGB = RGB(0, 0, 130) ActiveDocument.Background.Fill.Solid Could you please post what your test macro contains? Karen |
#4
|
|||
|
|||
Sub Color()
' ' Color Macro ' ' ActiveDocument.Background.Fill.ForeColor.ObjectThe meColor = _ wdThemeColorAccent1 ActiveDocument.Background.Fill.ForeColor.TintAndSh ade = 0# ActiveDocument.Background.Fill.Visible = msoTrue ActiveDocument.Background.Fill.Solid End Sub |
Tags |
2010, macro, page color |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Word macro doesn't change font color | Spideriffic | Word VBA | 8 | 11-04-2015 03:47 AM |
Macro to print "Current Page" in Word 2010 | Jshopping | Word VBA | 10 | 06-08-2012 01:15 AM |
Custom Color in word 2010? | guiri | Word | 8 | 11-06-2011 12:05 PM |
Word 2010 - Custom Color Deployment | Yipd | Word | 7 | 07-06-2011 12:27 AM |
Word 2000 Macro not working properly | brianlb | Word VBA | 1 | 07-01-2009 07:04 AM |