office-2010

Get reference to Forms checkbox in VBA event handler

混江龙づ霸主 提交于 2019-12-11 03:31:55
问题 I have some Forms Checkboxes in Excel 2010. I need to perform some common code when they are clicked. To do this, I'd like to pass a reference to the Checkbox, but so far I'm only able to get it typed as a shape. To preempt the question, yes, they need to be Form Checkboxes and not ActiveX Checkboxes. I'm a novice with VBA, so any help is appreciated. Sub CheckBox1_Click() 'I really want this reference to be a Checkbox, not a Shape Dim shape As Shape Set shape = ActiveSheet.Shapes("Check Box

Can't call Word VBA Macro with parameters

£可爱£侵袭症+ 提交于 2019-12-11 02:49:08
问题 I have a VB6 application that needs to call a Word 2010 VBA routine and supply a string parameter. The VBA routine is in an Addin that is enabled with the open document. According to the MSDN reference (http://msdn.microsoft.com/en-us/library/ff838935.aspx) I should be able to supply that parameter after the macro name, in order. My code calling the routine looks like so: sMacro = "Link.Functions.UpdateFootnote" sParam = "Footnote Text" DocApp.Run sMacro, sParam 'I've also tried DocApp.Run

How to dynamically load, access and unload subforms in microsoft access

依然范特西╮ 提交于 2019-12-11 01:48:44
问题 I am trying top transition from ASP.NET to programming in access and I am used to thinking in terms of Usercontrols when I think of subforms in Access. What I would like to do is allow user to click a button to load a subform that contains controls user can enter additional data into. I would appreciate any information or resource that would help me with understanding how this is done in MS Access -- how to load, unload and access data in the subforms as well. Thanks in advance 回答1: Well, as

Making vsto add-in installable

雨燕双飞 提交于 2019-12-10 22:08:35
问题 I´ve created several VSTO add-ins for Outlook/Word/Excel/PowerPoint. When i build them & then start the accociated program, the add-ins are installed and work wonderful. When I try to install the DLL manually, in "Options > Add-Ins > COM-Add-Ins:Go to... > Add..." and then select the DLL, the program tells me, that it is not a valid Add-In. What is the problem here? Visual Studio 2010 can install them automatically. Can someone help me? Thanks! 回答1: A .net VSTO addin DLL is not a normal COM

Get a CheckBox in Word using OpenXML

大城市里の小女人 提交于 2019-12-08 23:29:15
问题 How does one get a handle to a CheckBox control that's embedded in a Word document using OpenXML? You would think that either Paragraph.ControlPropertiesPart or Paragraph.Descendents() would achieve something but in every single case I get a null type returned. I can traverse down the document tree using the actual XML structure, but this seems cumbersome. Suggestions welcome. 回答1: The code below shows how to enumerate all checkboxes in a word document by using the Decendants<CheckBox>()

How can I set the picture associated with a node in a SmartArt graphic?

时光总嘲笑我的痴心妄想 提交于 2019-12-08 07:24:45
问题 SmartArt graphics can have pictures associated with the "nodes" (although this is only used by certain SmartArt templates). I know how to set the text of a node via VBA/VSTO automation, but I can't figure out how to set the picture. Can it be done? 回答1: Try something like this - if you've done any work in VBA with smartart this should make sense. Dim oSALayout As SmartArtLayout Dim QNode As SmartArtNode Dim oShp As Shape Set oSALayout = Application.SmartArtLayouts(91) 'reference to

Replace the Outlook 2010 Send-Button?

眉间皱痕 提交于 2019-12-07 08:37:13
问题 I'm looking for a solution for the following problem. Can anybody help me out? I need to replace Outlooks Send-button with a dropdown-button like the "Von" (From) button in my screenshot. FYI: The new Send-DropDown button will have three functions: 1. Outlooks default send function (the normal sendbutton) 2. Send & Archive Mail 3. Send & Archive Mail+Attachments Can anyone help me out? Is it possible to do a replacment like i want? if not - does anyone have an other solution for my problem?

What Component IDs should I search for to detect whether the Office 2010 PIA's are Installed

假如想象 提交于 2019-12-06 18:52:46
问题 I'm creating a plug-in for Office 2010 and need to detect on install whether the Office 2010 PIA's are installed. I have done this for 2003 and 2007 but cannot find the Component ID's for 2010 does anyone know what they are? thanks, Ed 回答1: Do a search for the component ID for the PIA (primary interop assembly) applicable to the component of office you need from the list below: {EA7564AC-C67D-4868-BE5C-26E4FC2223FF} Excel {4153F732-D670-4E44-8AB7-500F2B576BDA} InfoPath {1D844339-3DAE-413E

Is there a way to add custom web services to Word 2010 via the Research Pane?

◇◆丶佛笑我妖孽 提交于 2019-12-06 13:53:23
问题 I have been wondering if I can add custom web services with the wsdl or asmx file extension via the Research Pane in Microsoft Word 2010. I have searched just about every site that has those services, but no luck finding instructions. Rather than trial and error, I felt more confident if I were to ask someone here. Basically, what I would like to be able to do is add a site like http://www.ebi.ac.uk/Tools/webservices/wsdl or some other source and be able to send queries via the research pane.

AppActivate works in Excel 2007 but not in 2010

痴心易碎 提交于 2019-12-06 11:28:51
I have a excel macro that I run in Excel 2007 and it opens a mainframe application so I can import data from my spreadsheet automatically. This has been working fine, however it doesn't work in Excel 2010. I have tried using the shell command to use the ID but the other application is a mainframe application and non windows based. However, AppActivate "Title" (to open the mainframe application) was working fine in excel 2007. In Excel 2010 I am getting a Run-time error 5 - Invalid procedure call or argument. I've been trying to solve this for two days and it all works fine on 2007 version. Any