Unable to access buildingblocks through vba
I created some building blocks and recorded macro to insert them. But when I ran the same macro recorded by macro recorder, I encountered error 5941. I even tried Application.Template.Loadbuildingblocks to load building blocks but reencountered the same error. I am also not being able to access building blocks.dotx ("C:\Program Files (x86)\Microsoft Office\Office12\Document Parts\1033\Building Blocks.dotx").
While I wrote "Set BBtemplate = Application.Templates("C:\Program Files (x86)\Microsoft Office\Office12\Document Parts\1033\Building Blocks.dotx")" vba displays the same error 5941 saying the collection does not exist. How can I solve this problem??
|