Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
81 views

Unattended installation of MS Office 2007 through PowerShell without Volume License

Recently I've been given a task to automatize the installation of MS Office 2007 through PowerShell. I've tried doing it this way: Invoke-Command -ScriptBlock {Start-Process ".\Pakiet Office\...
WUIERFDWWR's user avatar
0 votes
0 answers
30 views

Access - Enabling macros causes Access to crash

I have a database embedded with VBA code. Database has been running for years and then, all of a sudden when I open the form which contains the bulk of VBA code, access crashes. Here is the catch, I ...
Dan Kantorski's user avatar
0 votes
0 answers
302 views

System.Runtime.InteropServices.COMException (0x80010105): The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))

Hi can I get some idea on how to fix this, I'm getting this error every time I hit my function that sends pdf files through email, I'm using microsoft word 2007 in my machine heres the error and my ...
Yakumo's user avatar
  • 1
1 vote
1 answer
525 views

Convert PowerPoint Presentation to HTML with Office 2019 or Office 365

I have a code which converts the PowerPoint presentation to HTML using Office 2007. The code which runs on Office 2007 without a problem is as below: static void Main(string[] args) { ...
Simant's user avatar
  • 3,942
0 votes
1 answer
29 views

How do I recover Outlook E-mails after uninstalling it? [closed]

A friend of mine has uninstalled Outlook 2007. It wasn't working for her but she kept it as an E-mail repository, a POP3 E-mail nonetheless that was going back years. The hosting guys are not keeping ...
Sean's user avatar
  • 1,314
0 votes
1 answer
697 views

Why do I suddenly get an error when trying to send a google search using a MSXML2.XMLHTTP object?

I'm using this script I compiled to get details about the documentaries that I watch. Based on the filename, I get a documentary name, I then compile a google search string, I search google, get ...
militon the sane's user avatar
0 votes
1 answer
583 views

Word 2007 VBA pause macro for user to manually select cursor position or range with the mouse

I have many macros which act on a selected range (eg a row in a table, or a random selection area (not in a table)), only part of the active document, in Word 2007. (They perform multiple tasks on ...
Piecevcake's user avatar
0 votes
0 answers
91 views

Not possible to pass UDT between modules on different projects

I believe that what I'm about to ask is a restriction but I am hopeful that there is a satisfactory solution. I am working with multiple files / workbooks and am intending to keep code associated ...
Steve Roberts's user avatar
1 vote
1 answer
1k views

Word says macros are disabled but settings show they are enabled

I use Word 2007. I have a Word template that has an AutoNew macro. That macro sets a few document variables and then calls a macro in Normal.dot to do the real work. This was developed in WordBasic (...
Paul Ogilvie's user avatar
  • 25.2k
1 vote
1 answer
1k views

Use OpenXML to create .DOCX containing an image that works with Word 2007

I am attempting to use OpenXML with C# to create a DOCX word document. The text and formatting on the document work very well. But, when I add an image to the document, Word 2007 will not open the ...
kc7rad's user avatar
  • 17
1 vote
0 answers
61 views

How to add Office Interops from Office 2007 while using Office 2016

In our firm we use a self-writen tool, created with Visual Studio 2008. Most of my colleagues are still using Office 2007 and Windows 7, but I use Office 2016 and Windows 10. Our tool has interaction ...
D. Krumschmidt's user avatar
0 votes
1 answer
853 views

C#: Get index of Table after specific paragraph

Assume I have the following structure:- I wanna get the index of second table after "1.3 The headline of paragraph3", means the next:- The input is 1.3 The headline of paragraph3 The ...
ahmed abdelqader's user avatar
1 vote
0 answers
110 views

Persisting individual slides

I'm looking to serialise individual PowerPoint slides and persist them on disk. The goal is to access the slide data later on and add them to other presentations. For our add-in, the number of slides ...
edsioufi's user avatar
  • 8,335
0 votes
0 answers
70 views

Peculiar Access 2007 issue, reports not displaying some fields

Our office is having a very strange issue with Access 2007. Long story short - over the past few weeks, half the computers were upgraded to Windows 10, and all of them were upgraded to Office 2013 - ...
Mike's user avatar
  • 31
0 votes
2 answers
691 views

MAPILogonEx(...) returns NULL while calling from MAPILogOn(...)

I am creating default mail application like thunderbird and outlook but with some of the features only. So now problem is only with the word 2007 and excel 2007 while sending file from fileMenu -> ...
Ujjaval Moradiya's user avatar
0 votes
2 answers
509 views

How do I add custom menu items to the office-button in office-2007?

How do I add custom menu items to the office-button in office-2007? In office 2007, I've managed to add some custom menu items to the office button, see the image below: As you can see I added a '...
creulcat's user avatar
  • 276
1 vote
1 answer
208 views

copy from xls document into word using vba

I'm trying to make a code in which to copy charts from a xls file into a word document using the PasteSpecial property (picture(enhanced metafile). I would like to change the existing charts of the ...
Georgy's user avatar
  • 21
-1 votes
1 answer
72 views

How to reduce size of image in powerpoint2007 with coordinates using C#?

slide.Shapes.AddPicture(pictureFileName, Microsoft.Office.Core.MsoTriState.msoTrue, Microsoft.Office.Core.MsoTriState.msoTrue, shape.Left, shape.Top, shape.Width, shape.Height).ScaleHeight(and, ...
Ashwani's user avatar
  • 81
2 votes
1 answer
1k views

Can I create a VSTO outlook addin targeting .net framework 4.6.1, which runs on all office versions from 2007 to 2016?

I have an outlook addin developed with VS 2008 and for 3.5 framework.Now, I want to upgrade it to latest framework(4.6.1).But when I tried to create an office project in VS 2012 targeting 4.6.1 ...
V K's user avatar
  • 1,709
0 votes
1 answer
256 views

Create a vba code to replace all the headers, of all the word documents in a Folder and Subfolders

Sub ReplaceEntireHdr() Dim wrd As Word.Application Set wrd = CreateObject("word.application") wrd.Visible = True AppActivate wrd.Name 'Change the directory to YOUR folder's ...
Scroll Lock's user avatar
-1 votes
1 answer
250 views

how to move cluttered data from one cell of Excel and distribute to respective cells?

Is it possible to move the data from one row to the another following row in excel sheet? I want to sort the data in that following excel sheet only and move the data after the marking to the ...
Yash's user avatar
  • 786
0 votes
1 answer
241 views

Logging Error VBA excel Batch command

I have a batch file contains echo test string >>Log.txt when i click on it it will make a Log.txt file and the "test string" will be in it. But when i run the batch file from VBA excel using ...
user3647205's user avatar
2 votes
1 answer
139 views

Presence of parentheses suddenly causes code to break

I had a line of VBA code that basically looked like this: MyControls.Add(Factory.CreateMyControl(param1, param2)) Where Factory.CreateMyControl is just a sneaky way to allow the new instance of my ...
Taylor Lopez's user avatar
0 votes
1 answer
52 views

Moving a value from 1 table to another

What's the best way to do the following using access 2007? I want to move a value from 1 table to another. If table1 has the value 1000, I would like to move some of that value to table2. Lets say ...
oshirowanen's user avatar
  • 15.8k
0 votes
1 answer
512 views

.net & Excel - From Office 2007 to 2013

so, our IT department upgraded everybody from Office 2007 to Office 2013, and many of my hard work has to be redone. (VS 2013 Express, framework 4.5) The error I am getting is: "Unable to cast COM ...
damien's user avatar
  • 33
1 vote
1 answer
800 views

Find non-printable characters using MS word VBA

I have written a macro which searches in a word document for a certain wind-card defined text string and then find which paragraph this found match belongs to. Everything works fine, but now I have ...
Evgeny's user avatar
  • 101
0 votes
1 answer
91 views

Custom query in Microsoft Access 2007

I am trying to make a custom query in access. I have a table where there are name of states. For example: Mexico, Texas, New York, Ohio, Indiana Now I want to show the details of all the Recruitment ...
Nafis Nasan Siddique's user avatar
0 votes
1 answer
449 views

Using Microsoft Access 2007 database with Visual C# 2010

I have finished designing my C# application which stores employees data in an Access database. The program works perfectly when I install Microsoft Office 2007 on my machine, but causes an error if I ...
Boulis's user avatar
  • 1
7 votes
3 answers
13k views

Excel automation: PDF export causes "Printer setup" popup

I am developing an application for automatic Excel to PDF generation. Every now and then (and without any apparent cause, the following popup comes up while the program runs: Print driver host for ...
F.P's user avatar
  • 17.8k
1 vote
1 answer
252 views

When csv file is save as plain text it will generate " " between each cell of excel

I am having simple excel sheet when I save as it as a textfile it is giving "" format For example csv is 1st cell 2nd cell akshay, shah, note : , is not the separater it is complete one value ...
Akshay Shah's user avatar
  • 3,456
0 votes
1 answer
1k views

MS WORD - line joining bullets

I am working in MS WORD and I need some help with bullets. I am trying to make a line, joining one bullet with the other in a Word document. Can anyone please tell me how do I draw a line vertically ...
Rocky's user avatar
  • 149
0 votes
1 answer
7k views

OCR using MODI Office 2007

hi i have problem to using OCR filtur from microsoft office 2007 i wanna create something like in this tutorial in my laptop i already installed office 2007 but i can't find MODI (microsoft office ...
Surya Matadewa's user avatar
0 votes
1 answer
57 views

Need Script to Ignore MSword tables - probably a simple issue with syntax

I have issues with my code dealing with tables, specifically I want the code to ignore them. I do not want this code to apply to tables so I thouht that I'd use "Selection.Information(wdWithInTable) = ...
VBA novice Ryan's user avatar
2 votes
1 answer
6k views

Get Excel Window back to Foreground

I searched the Internet from top to the root, but I couldn't find a solution. In my Excel Workbook I want to import Contacts from Outlook. This works fine without any problems. I get the GAL to the ...
user3615191's user avatar
0 votes
1 answer
2k views

Convert Text to Table VBA MS Word - AutoFit to Contents not working

I am trying to automate conversion of text to a table. When I selected "Auto-fit to contents" while recording a macro, I got the following code: WordBasic.TextToTable ConvertFrom:=1, NumColumns:=...
VBA novice Ryan's user avatar
9 votes
1 answer
4k views

Excel 2007 VBA - Using Sheets.Add to create a chart at the end of a workbook

I'm trying to implement a private subroutine to add a Sheet to the active workbook (Sheet being used so that one can choose to add xlForms, xlWorksheet, etc). But I'm having a bizarre problem with ...
Bitwize's user avatar
  • 11.4k
2 votes
1 answer
2k views

How do register PIA12 (Office 2007) assemblies with visual studio 2013

I installed Office 2013 and VS2013 on Windows 8.1 - when I now open old Projects which reference the version 12 PIAs (for Office 2007) these are missing in the references since VS2013 does only ...
Sam's user avatar
  • 28.9k
4 votes
1 answer
8k views

open xml Numbered list

I need to get w:lvl text from w:ilvl I was able to get w:ilvl value but got stuck on how to proceed from here How do I link w:ilvl to w:numbering (I know I have to use w:ilvl, but how to do it from ...
abhigokul's user avatar
0 votes
1 answer
220 views

Word - Can you tell if the user Cancels a save

I've been searching for an answer to this but can find anything on it. In Word, when the user closes a document they are prompted with the "save", Cancel Save", "Cancel" dialog. Is there a way to ...
user1255276's user avatar
1 vote
2 answers
4k views

Microsoft Word 2007 VBA - Find the paragraph immediately following a table?

I have a VBA macro in Microsoft Word 2007 that finds all tables in my document with a particular background shade color and then deletes that table. That part works fine. But, in addition to needing ...
Grandpa Mojo's user avatar
0 votes
4 answers
950 views

Word and Excel file versions

What is the best way to keep track of Excel and Word file versions. The date last modified is not working for me because it changes as soon as you copy the file to a new location. I am using c#. ...
Albertus's user avatar
  • 901
1 vote
1 answer
1k views

Conditional VBA code for PowerPoint 2003 & 2007/2010/2013 object model compatibility

I am trying to write a single code module that will work with PowerPoint 2003 and all newer versions in relation to the colour model changes that were introduced with 2007 (theme versus scheme in the ...
Jamie Garroch - MVP's user avatar
29 votes
6 answers
110k views

The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine while data export to MS ACCESS

I am beginner in using Microsft.ACE.OLEDB 12.0. I create a Winforms application VS 2010. And create a function for export data grid data to MS Access file. I using Microsoft Oledb for export the ...
Ragesh Puthiyedath Raju's user avatar
1 vote
1 answer
775 views

How to get just a portion of the Word.Range.Text

I'm using c#.net and word 2007 lib's I want to be able to grab a portion of the Word.Range.Text and change it without affecting the formatting, text or anything else in the Range. How would I go ...
user1255276's user avatar
0 votes
1 answer
3k views

powershell - MS-Word document parsing - Get a table's caption text

I am parsing a word 2007 using powershell. I would like get each table's caption and print it to screen. Here is an idea of what I would like to do, but the print caption line does not work. $wd = ...
Justin's user avatar
  • 849
0 votes
1 answer
487 views

Solve OLE DB Connection without install Data Connectivity Components

Is there a way to solve the problem of OLEDB Connection (microsoft.ace.oledb.12.0' provider is not registered on the local machine) without install Data Connectivity Components while reading an excel ...
Mounir's user avatar
  • 291
1 vote
2 answers
69k views

How to lock Excel cells in VBA?

I have an Excel worksheet that acts like an application, with form control buttons allowing users to 'navigate' through records. First, Previous, Next & Last cycle appropriately through one of the ...
Analytic Lunatic's user avatar
10 votes
3 answers
9k views

Microsoft Office interop performance issue

I am try to exporting datagridview data to excel file in my C# 4.0 Windows application. we used Microsoft.Office.Interop.Excel dll version 12.0.0.0. It's works well and everything is fine. But i ...
Ragesh Puthiyedath Raju's user avatar
2 votes
2 answers
5k views

How can I identify the document that contains an embedded chart?

I have a COM add-in for Excel that works with the active workbook, and while it mostly works I'm having trouble with one particular scenario. If I have a chart in a Word 2010 document that I created ...
Gary McGill's user avatar
  • 27.3k
4 votes
1 answer
2k views

Save Embedded Object from OneNote

My goal is to extract embedded documents from a OneNote notebook programmatically. The embedded documents are likely to be Office documents, PDFs, and other arbitrary files. I do not have any ...
Jacob Quisenberry's user avatar

1
2 3 4 5
7