#1
|
|||
|
|||
Macro to open the Insert>Cover Page window /dialog box
Hi, I'm trying to record a macro that will do the following:
1. Select the Insert Tab 2. Cover Page 3. Let the user select a cover page saved in building blocks. I have tried using Commandbars, but have been unable to locate the Cover Page control. Any help would be much appreciated. Thanks in advance. |
#2
|
||||
|
||||
If it's a particular cover page you want to insert (i.e. the user doesn't need to choose from the list) you could use a macro like:
Code:
Sub Demo() Application.Templates("C:\Users\" & Environ("UserName") & _ "\AppData\Roaming\Microsoft\Document Building Blocks\1033\14\Built-In Building Blocks.dotx") _ .BuildingBlockEntries("Alphabet").Insert Where:=Selection.Range, RichText:=True End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Thanks for your response Macropod. I have recorded this macro, but I need to allow for different cover pages ie. the user will have a number of cover pages to choose from.
Is it possible to call this dialog window using commandbars? I have tried, but I'm obviously failing |
#4
|
||||
|
||||
It may be, but I have no idea of the CommandBar ID for that - IIRC there's something in the order of 10,000 to choose from...
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to insert a cover page inbetween each existing page when printing | grumby1 | Word | 6 | 02-18-2014 07:53 PM |
Possible to open each page of file in a different window? | Fran71 | Word | 2 | 04-27-2012 07:25 PM |
Macro to insert new page... | samanthaj | Word | 17 | 01-31-2012 01:53 PM |
Cover page problem | bluegum87 | Word | 2 | 08-02-2011 09:43 AM |
OFFICE(Word,Excel..)-crash/close when DIALOG BOX launched of insert image,open file | buggingme | Office | 1 | 05-30-2010 12:18 AM |