Results 1 to 16 of 16

Thread: Problems with my Building Block Template

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #15
    Microsoft Word MVP 2003-2009 VBAX Guru gmaxey's Avatar
    Joined
    Sep 2005
    Posts
    3,411
    Location
    Sarahjane,

    I replied via e-mail. As you are now aware, it was a scope issue. Happens to all of us form time to time ;-)

    For others reading this the OP was getting a runtime time error on:

    m_oTmp.BuildingBlockEntries("bbTRONLY1").Insert Where:=oCCA.Range, RichText:=True
    She had declared m_oTmp and set it to a template in the templates collection. Unfortunately she did it at a procedure level in her document_open event.

    She had then declared the variable m_oTmp again in her form click event so she got no compile errors. Naturally at runtime m_oTmp was nothing and the error occurred.
    Last edited by Aussiebear; 04-10-2025 at 07:17 PM.
    Greg

    Visit my website: http://gregmaxey.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •