#1
|
|||
|
|||
Change Colour Theme in Word with VBA
Dear all
Just a short question. I am relativley new to Word VBA programming and my skills are growing but still a bit limited. I am trying to find a VBA code which exchanges the used colour theme (under the "Page Layout" tab, "Theme" group). Reason: I have two different predefined colour themes and would like to exchange them, as my documents need to fit two different colour layouts. The easiest way i figure is just to switch between the themes, and it would be great if I could prompt this by using a command button (set-up is no issue here). Does this exist / is this possible with VBA? Would be extremely grateful for any help or advice on this issue! Best regards David |
#2
|
||||
|
||||
Hi David,
You could use a macro like: Code:
Sub Demo() With ActiveDocument If .ActiveTheme = "Theme1" Then .ActiveTheme = "Theme2" Else .ActiveTheme = "Theme1" End If End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Template is losing its theme when opend on other computer | Katten03 | Word | 8 | 06-04-2012 07:04 PM |
Help: office 2010 lost its color theme | lczlcz | Office | 7 | 03-26-2012 11:37 PM |
CHange colour of footer if a cell changes to red | OTPM | Excel | 0 | 05-26-2011 07:15 AM |
Trying to clear the background colour from a theme | ezekiel181 | Word | 1 | 11-14-2010 07:29 AM |
"Change Word Options" don't change | ADKREV | Word | 0 | 11-12-2010 10:56 AM |