Changing the default theme

D

Dstarss

I received some help from Jay Freedman regarding themes in Word 2007, and I thought it would work the same in PowerPoint, but I'm either doing something wrong or it doesn't

I'm trying to change the default theme using this macro, but all I get is Run-time error '424': Object required
Any ideas

Sub AutoOpen(
Dim ThemePath As Strin
Dim ThemeFile As Strin

ThemeFile = "MyTheme.thmx
ThemePath = Options.DefaultFilePath(
wdUserTemplatesPath) &
"\Document Themes\

On Error Resume Nex
ActiveDocument.ApplyDocumentTheme
ThemePath & ThemeFil
If Err <> 0 The
MsgBox ThemeFile & " was not found in" &
vbCr & ThemePat
End I
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top