Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trying to run MS Word startup file for Add-in
#1
I am trying to get a startup file for MS Word (Addin Custom.dotm) be run thru below script. The script is working, but I didn't get the add-in (extra menus) to show in MS Word. Could you tell me if the below script would actually run the extra file?

Code:
Call MacrosVBALoad() Sub MacrosVBALoad() Dim ExtraPath Set obj_Word = CreateObject("Word.Application") 'Load New Macros Program' On Error Resume Next ExtraPath= obj_Word.Options.DefaultFilePath(wdStartupPath) obj_Word.AddIns.Add ExtraPath+"Addin Custom.dotm", True obj_Word.visible = True obj_Word.Documents.Add() End Sub

There was no error when running above script, and MS Word opened. But i didn't see the extra menus that should show with the Add-ins. Any help to make this work would be appreciated.
I am using Qtp 10, and MS Word 2007.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Check the word and get no. of times that word in the webpage Sandeep.san229 0 1,927 10-31-2018, 06:42 PM
Last Post: Sandeep.san229
  pageDown in word.application wannel 0 2,111 11-25-2016, 10:06 PM
Last Post: wannel
  Automating Word Docs bart02 0 3,173 07-18-2014, 03:25 AM
Last Post: bart02
Sad Save data from pdf file to a word doc Amar 0 3,072 12-12-2013, 12:29 PM
Last Post: Amar
  Inserting Images in the Word file. atulparate 2 7,571 04-09-2012, 12:44 PM
Last Post: swathi

Forum Jump:


Users browsing this thread: 1 Guest(s)