word-2010

Word 2010: how to create a drop-down menu in qat (quick access toolbox)

别等时光非礼了梦想. 提交于 2020-01-04 13:42:16
问题 SHORT: I would like to add a drop-down menu to the quick access toolbar of any instance of Word 2010 via placing a customized .dotm-file in Word's startup folder. I fail in creating this customized .dotm-file . LONG: I've been writing a little "add-in" for Word 2010, first with VSTO, then figured out problems with the deployment, now with VBA. The add-in should simplify adding my company's logo and legal notice to documents (different combinations of logos & legal notices exist). In order to

Word 2010: how to create a drop-down menu in qat (quick access toolbox)

北城余情 提交于 2020-01-04 13:42:10
问题 SHORT: I would like to add a drop-down menu to the quick access toolbar of any instance of Word 2010 via placing a customized .dotm-file in Word's startup folder. I fail in creating this customized .dotm-file . LONG: I've been writing a little "add-in" for Word 2010, first with VSTO, then figured out problems with the deployment, now with VBA. The add-in should simplify adding my company's logo and legal notice to documents (different combinations of logos & legal notices exist). In order to

Word 2010: how to create a drop-down menu in qat (quick access toolbox)

…衆ロ難τιáo~ 提交于 2020-01-04 13:41:30
问题 SHORT: I would like to add a drop-down menu to the quick access toolbar of any instance of Word 2010 via placing a customized .dotm-file in Word's startup folder. I fail in creating this customized .dotm-file . LONG: I've been writing a little "add-in" for Word 2010, first with VSTO, then figured out problems with the deployment, now with VBA. The add-in should simplify adding my company's logo and legal notice to documents (different combinations of logos & legal notices exist). In order to

Add Text Above MSWord Table Using VBS

微笑、不失礼 提交于 2019-12-25 14:30:01
问题 I am working on creating a signature in outlook using VBS to push to our users. The signature has tables in it so i can have a logo / user information side by side vs. the standard text on top of a logo. (Original table code found here: http://www.vbforums.com/showthread.php?526706-resolved-question-with-tables-in-vbscript-for-AD-signature) Below is a snipit of the code that writes to the doc file. The code sucessfully creates two coluns and puts whatever information i want into them. Is

Word 2010 custom XML?

血红的双手。 提交于 2019-12-24 09:39:22
问题 I am looking into a new project which involves adding XML structure to a Word document using Custom XML but I don't know how the i4i case affects this. 1) Microsoft recommends using custom controls in the document. Can this validate using an XML Schema file? It looks to me more like a way to create a template and not really for adding tags to existing content. 2) The i4i judgement about Custom XML only concerned North America. Did Microsoft remove the feature worldwide or can I still access

how to access programmatically to “print preview and print” page in Office Word 2010

血红的双手。 提交于 2019-12-24 05:57:10
问题 I am writing a medical program (with C# Language) which has a relation with Microsoft Office Word 2010. In Word 2010 there is a page "Print Preview and Print" which you can access by pressing Ctrl + P . After I launch Office Word, I want to see "Print Preview and Print" but instead I see the old print preview from Office 2007/2003, which means I don't know how to access this page from office com objects. The code I've tried: oWordDoc.PrintPreview(); _oWord.Visible = true; 回答1: You can always

Generate bookmarks in Word 2010 programmatically, with the header name as the bookmark name

北慕城南 提交于 2019-12-23 01:42:36
问题 I need to generate bookmarks in Word 2010 programmatically, with the header name as the bookmark name. I have the following code which makes a word a bookmark, but the bookmark name remains the same as the string Heading 1 is only available in the name variable: Sub bookmarking() Selection.EndKey Unit:=wdLine, Extend:=wdExtend With ActiveDocument.Bookmarks .Add Range:=Selection.Range, Name:=" Heading 1" .DefaultSorting = wdSortByName .ShowHidden = False End With End Sub Instead of the Heading

Adding a hyperlink in word, with vb.net

断了今生、忘了曾经 提交于 2019-12-22 08:12:23
问题 I'm currently trying to add a hyperlink to a web url in word through a VB program. I'm stumbling around to try and find the proper syntax and what I need to accomplish this, because I've been getting a lot of unhelpful VBA examples, which is not what I need at all. My code looks like this: sPara2 = oDoc.Content.Paragraphs.Add sPara2.Range.Text = attachmentRdr("attachmentName") sPara2.Range.Hyperlinks.Add(attachmentRdr("attachmentPath")) sPara2.Format.SpaceAfter = 24 '24 pt spacing after

Word VSTO - Filling a shape does not work in Word 2010 and Word 2013?

心已入冬 提交于 2019-12-20 05:46:09
问题 I use the following VB.NET (VSTO) code to add a shape in MS-Word, Dim app As Word.Application = Globals.ThisAddIn.Application Dim doc As Word.Document = app.ActiveDocument Dim left As Single = CSng(Convert.ToDouble(app.Selection.Information(Word.WdInformation.wdHorizontalPositionRelativeToPage))) Dim top As Single = CSng(Convert.ToDouble(app.Selection.Information(Word.WdInformation.wdVerticalPositionRelativeToPage))) Dim shape As Word.Shape = doc.Shapes.AddShape(1, left, top, 225.1F, 224.5F)

Print certain pages only

╄→гoц情女王★ 提交于 2019-12-20 02:32:36
问题 SOLUTION: Application.PrintOut FileName:="", Copies:=2, Range:=wdPrintRangeOfPages, Pages:="2,6-10" ORIGINAL QUESTION: I have the following code which works fine: Application.PrintOut FileName:="", Copies:=2 This prints my 10 page document twice. I now want to use the pages option to specify only certain pages to print out: Application.PrintOut FileName:="", Copies:=2, Pages:="2, 6-10" I was expecting it to print out pages 2 and 6 to 10 twice, i.e. 2,6,7,8,9,10,2,6,7,8,9,10, but instead it