Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-12-2012, 07:59 AM
Sorceress Sorceress is offline Word 2010 Page Color not working in macro Windows Vista Word 2010 Page Color not working in macro Office 2010 32bit
Novice
Word 2010 Page Color not working in macro
 
Join Date: Oct 2012
Posts: 2
Sorceress is on a distinguished road
Default 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
Reply With Quote
  #2  
Old 10-12-2012, 01:32 PM
Ulodesk Ulodesk is offline Word 2010 Page Color not working in macro Windows 7 64bit Word 2010 Page Color not working in macro Office 2010 64bit
Word 2013 Expert Cert
 
Join Date: Sep 2009
Location: Virginia
Posts: 866
Ulodesk is on a distinguished road
Default

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?
Reply With Quote
  #3  
Old 10-12-2012, 02:53 PM
Sorceress Sorceress is offline Word 2010 Page Color not working in macro Windows Vista Word 2010 Page Color not working in macro Office 2010 32bit
Novice
Word 2010 Page Color not working in macro
 
Join Date: Oct 2012
Posts: 2
Sorceress is on a distinguished road
Default

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
Reply With Quote
  #4  
Old 10-15-2012, 06:02 AM
Ulodesk Ulodesk is offline Word 2010 Page Color not working in macro Windows 7 64bit Word 2010 Page Color not working in macro Office 2010 64bit
Word 2013 Expert Cert
 
Join Date: Sep 2009
Location: Virginia
Posts: 866
Ulodesk is on a distinguished road
Default

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
Reply With Quote
Reply

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
Word 2010 Page Color not working in macro Macro to print "Current Page" in Word 2010 Jshopping Word VBA 10 06-08-2012 01:15 AM
Word 2010 Page Color not working in macro Custom Color in word 2010? guiri Word 8 11-06-2011 12:05 PM
Word 2010 Page Color not working in macro 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

Other Forums: Access Forums

All times are GMT -7. The time now is 08:47 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft