office-automation

Excel 2007 automation on top of a Windows Server 2008 x64 - NON SYSTEM USER

匆匆过客 提交于 2019-12-24 19:02:17
问题 Folks, I have the exact same issue that's presented here, except that I'm trying automate Excel using a non-system (user) account. The solution of creating a desktop folder doesn't work, because the user already has a desktop folder. I can get the solution to work for the System Account just fine. I can also get it to work for the Administrator account, when logged-in. Is this in fact a Session 0/1 issue or is that still a red herring? 回答1: Chase this down with SysInternals' ProcMon, probably

VB6/VBA Do not Allow COM Add-In to load

心不动则不痛 提交于 2019-12-23 17:59:22
问题 I have a VB6/VBA application that hooks into Excel and loads a workbook. It has been working great for many years. We have now upgraded to Excel 2010 and have ran into some issues. After troubleshooting it seems that if i turn off the PowerPivot COM Add-In the process is able to run as it did before with no issues. While I look for the exact cause of this i wanted to see if i can turn off that Add-In just for my app. I load up Excel like this: Set xlApp = CreateObject("Excel.Application")

Creating Charts with multiple series in Powerpoint 2013 using C#

随声附和 提交于 2019-12-23 17:54:34
问题 I am using VS2013 Ultimate, with Office 2013 (PowerPoint, Excel and Word all installed). I am coding in C#. I am creating a PowerPoint presentation using C#. So far, I have managed to accomplish everything that I have wanted to do. However, I am having problems attempting to create a chart. My understanding is that Excel is used to manage the data (in a worksheet). I have the following code, which will produce a chart with two series in a PowerPoint slide. The problem is that 'sometimes' the

Excel VBA SendKeys not causing IE 9 to save download

那年仲夏 提交于 2019-12-22 06:00:42
问题 I am writing a macro to download a csv file from my company's internal website. For many reasons I can't use any xmlhttp objects. The macro will download the file. The problem is Internet Explorer 9 prompts the user with Open, Save, and Cancel buttons. While in IE, Alt+Shift+S will save the download, but I can't get the Sendkeys "%+s" method from Excel VBA to work. Here is the relevant code: Function followLinkByText(thetext As String) As Boolean 'clicks the first link that has the specified

Printing with advanced options (tray selection, duplex, staple)

有些话、适合烂在心里 提交于 2019-12-17 19:29:37
问题 We have a project of managing printing documents. At first I wonder why printing options couldn't be set up in single place. For example printer tray selection for first page and for other pages can be done using MS Word automation : var doc = _applicationObject.Documents.OpenNoRepairDialog(FileName: ref sourceFile, ReadOnly: ref readOnly, AddToRecentFiles: ref addToRecentFiles, Visible: ref visible); doc.PageSetup.FirstPageTray = (WdPaperTray) firstPageTrayCode; doc.PageSetup.OtherPagesTray

“Unspecified Error” 80004005 when creating new Access database, only on another workstation

假装没事ソ 提交于 2019-12-12 04:38:33
问题 What I have is a JScript file that gets called by cscript , and this script is a proof-of-concept that creates a new Access 2007 format database, imports a set of VBA modules into the database, and then runs a subroutine from the imported modules. This script works flawlessly on my own computer. I have Office 2013 installed. However, I brought this script over to a coworker's machine and had him attempt running it. On his machine, we get an error that looked something like, createdb.js (22, 1

State of CheckBox can no more be checked after mail merge

Deadly 提交于 2019-12-12 02:56:40
问题 I create a mail merge with word automation. In my template file I have checkboxes which are set to checked or unchecked state through the following code: {IF {MERGEFIELD fieldName}="y" [checked checkbox] [unchecked checkbox]} where [checked checkbox] and [unchecked checkbox] are Check Box Content Controls with the corresponding check-state. This works fine so far. However in the output document of the mail merge, the checkboxes are no more checkable. It seems that the Check Box Content

Renaming multiple files on a folder python of a excel spreadsheet

感情迁移 提交于 2019-12-12 00:33:51
问题 I am pretty new at Python and I want to automate a process that takes a lot of my time but now. I need to rename about 200 + excel files that need to be renamed, but here is the catch they cant be consequential instead they need to be "vlooked up" of a master spreadsheet that contains the names and then name the files exactly how its named on the master spreadsheet. So for example: folder I got: 1. filexxxxFA9261 2. filexxxxFA3040 3. filexxxxFA5251 and on my master spreadsheet I got: 1.

Autoplaying a movie in a PowerPoint presentation with C#

给你一囗甜甜゛ 提交于 2019-12-11 15:08:56
问题 I am currently trying to change some settings in a .pptx files via C# and Microsoft.Office.Interop.PowerPoint . I have some .wmv movies linked on several slides of the presentation. At the time the presentations were created, all movies play as soon as they are clicked. However, I want to change this to start automatically playing as soon as the slide is viewed. This this has to be done to a lot of presentations, so there is no way to do this manually. I found the PlaySettings.PlayOnEntry

MS Access context menu filter message The object doesn't contain the Automation object 'me'

荒凉一梦 提交于 2019-12-11 12:24:57
问题 I have a form that I open in either datasheet or continuous forms view with four fields bound to text columns in a linked table. If I right click for the context menu and filter on column 1 or 2 equal to one of the values it filters OK; If I try to filter on field 3 or 4 I get the message "The object doesn't contain the Automation object 'me'". If I select 'Text Filter' on fields 3 or 4 and enter some text, it filters OK. I would be grateful if anybody that has experienced this can tell me