![]() |
|
#1
|
|||
|
|||
|
Hi everyone, i have problem, last days i made a VBA word file with some quicktext blocks saved in normal.dotm. everything runs great. Now i thought i'd make it a template on is own, so i saved the whole file as "template.dotm" changed the location of the quicktext parts from normal.dotm to template.dotm, but now if i run the VBA and i want to insert a quicktext part i got the following error message: Code:
Application.Templates(strTemplate). _
BuildingBlockEntries("Quick1").Insert _
Where:=orng, _
RichText:=True
Kind Regards |
|
#2
|
||||
|
||||
|
What does strTemplate point to? The following should work provided the macro and the building block are in the template
Code:
Application.Templates(ThisDocument.FullName). _
BuildingBlockEntries("Quick1").Insert _
Where:=orng, _
RichText:=True
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
|
#3
|
|||
|
|||
|
Did the trick, tnx!!
|
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Printing multiple copies of docm from Word to PDF saving file with sequential name- 001, 002 etc.
|
SSCMapletart | Word VBA | 3 | 04-18-2017 03:04 AM |
DOCM file not saving on Microsoft Word 2010
|
flutterby1 | Word | 4 | 10-08-2014 10:55 AM |
How to convert docm to dotm without opening the file
|
Moz | Word | 1 | 12-20-2012 04:23 PM |
Problem saving in Word 2007 a dotm Addin developed in Word 2010
|
RichardP | Word VBA | 6 | 04-26-2012 04:22 AM |
A newbie question: a must to save macro word file as .docm?
|
tinfanide | Word VBA | 6 | 12-06-2011 03:02 PM |