![]() |
#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!!
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
SSCMapletart | Word VBA | 3 | 04-18-2017 03:04 AM |
![]() |
flutterby1 | Word | 4 | 10-08-2014 10:55 AM |
![]() |
Moz | Word | 1 | 12-20-2012 04:23 PM |
![]() |
RichardP | Word VBA | 6 | 04-26-2012 04:22 AM |
![]() |
tinfanide | Word VBA | 6 | 12-06-2011 03:02 PM |