Questions tagged [office-automation]
Use this tag for questions related to automating MS Office Products ( Excel, Outlook, PowerPoint, Access, Word, Project, etc. ). Automation in this context means the use of an external software, not an MS Office product, to execute a variety of operations on MS Office products. For questions about macros use the relevant tags for example "excel" and "vba". Do not use this tag if your question is not about automatic control.
-1
votes
0
answers
19
views
I would like to create a form in excel with 5 or 6 datapoints that would be used to send an email via Outlook. One of the data points would possibly be an additional excel file.
Ideally, once the ...
0
votes
0
answers
23
views
I have automated a few emails (outlook) recently via Excel. These emails include standard texts and add attachments via a path. Recently, all the paths concerning zip folders failed to work despite ...
0
votes
0
answers
24
views
How ticked or unticked "allow only this type of editing in the document" option with Microsoft.Office.Interop.Word library in c#.
0
votes
1
answer
13
views
I used following code to get 'Sent Items'. It is fetching all sent mails. I want to fetch particular date mails only.
import win32com.client
outlook = win32com.client.Dispatch(&...
This question is more like a plea to get an explanation than help.
So, the goal is to create email draft in Outlook using PowerShell script.
On 3 systems, the following works as intended:
$ol = New-...
0
votes
0
answers
41
views
Trying to import the data from an Excel sheet into a Sql Server table. The code is activated by a button in a userform. But I am getting the error below when clicking it. I am using a work machine and ...
0
votes
0
answers
28
views
Hi community I have a question so I'm not used to use excel and ppt and now I need to figure out a time saving method to this problem:
so I have a ppt template with a bunch of fields that should be ...
0
votes
0
answers
20
views
When I working with Excel by C#. If I worked in the same worksheet, it's ok. But when I worked in difference worksheets. It has an error : System.NullReferenceException: 'Object reference not set to ...
0
votes
1
answer
28
views
In Python, I try to fetch the 'Sent Items' with parent's subject of that mail in OUTLOOK using win32com.client. If sent mail is replied mail or forwarded mail means, I want following,
inbox = folder....
I am trying to reply to emails using PowerShell, and the code below works successfully, but it doesn't show the original message I'm responding to:
Add-Type -assembly "Microsoft.Office.Interop....
0
votes
1
answer
27
views
I need to save Outlook-Mails with the attachments in the msg-file in Python. Currently working with win32com.client I use: message.SaveAs(path + name) which gives me a nice .msg file, but that does ...
I have the following macro to extract and combine excel files from outlook.
The macro does not work on the start with variables declaration.
I get an error:
"Compile error
User-defined type not ...
0
votes
0
answers
41
views
The problem: In my environment (64-bit Windows 10) I have tens of thousands of old-format Word documents (.doc) that must be updated to the new .docx format. These documents are spread across ...
0
votes
0
answers
26
views
As the title says I am trying to automate the titus classification selection with Python in Outlook. I have seen a VBA possible fix and am wondering if anyone has solved this problem with sending ...
I am trying to open a word .docm via a string with Documents.Open. It works after the second run of the script. In the first run the document simply doesn't open up, and the script doesn't load the ...
Is it possible to tell how much of a given text can fit into a table cell? This example puts everything in the first cell, I need to split it in two without resizing the first cell or changing the ...
0
votes
0
answers
55
views
Reaching out once again in hopes of getting this code to work as I need. Getting close to meeting my needs with lots of help. So far I have been able to gather enough code to get me started. I keep ...
0
votes
2
answers
56
views
I need to write a console application that essentially will:
Access a group/shared mailbox's inbox.
Select all emails older than n minutes.
Move the selected emails to another folder "AgedEmails&...
0
votes
1
answer
37
views
I am trying to copy Outlook Shared Contacts into a folder under MyContacts. I am looking for an easy solution for my team outside of using an Import Wizard or physically copy/paste due to the computer ...
I have prepared code for mail automation. It will read the contents of of a CSV file and compare it with mail body and fetch the information and share it via mail.
The if-statement will not work code ...
-1
votes
1
answer
31
views
I am trying to make a python script which reads incoming email on outlook using pywin32 library. I am having trouble finding a way to keep reading incoming emails. At first I thought of writing an ...
0
votes
0
answers
33
views
I have a Group as Image :
I duplicate this group. But GroupItems of new group can't get ParentGroup of them:
My code sample:
Dim oApp As Object
Dim oDoc As Object
Dim oGroup2 As Object
Dim ...
I have succesfully created a program that send multiple emails, but I'm not having success to format the text correctly.
Every time that I try to create a new line, python automatically inserts a new ...
0
votes
1
answer
33
views
when I write the code as below the font and the size are correct but the signature is missing...
Do you know how to proceed to add my signature already created in Outlook?
Sub mail_outlook()
Dim ...
2
votes
0
answers
57
views
We use Redemption since many years. Since few days many of our clients have issues when they use our plugin for Outlook. We changed nothing in our app.
I did some traces and found that the line Set ...
0
votes
1
answer
29
views
I wondered if someone could help me with my VBA coding, I'm relatively new.
I've managed to set up VBA auto emails before and autofilters, but this is a lot more complicated than anything I've ever ...
0
votes
1
answer
25
views
I have to iterate through many shared folders within my company. I need to store all the strings of the messages in a database for a machine learning project.
I read in some threads that I should not ...
There is a warning when you send emails via Outlook by using the Microsoft.Office.Interop.Outlook objects. There are several workarounds in form of disabling the complete security warning. That is not ...
0
votes
1
answer
73
views
EDIT: apparently I have a problem with invoking ItemSend as breakpoint don't break when e-mail is sent
Code is in ThisOutlookSession in Application Object window
====
We started using different ...
0
votes
2
answers
62
views
I am trying to Extract Emails from Shared mailbox which i am not Owner i have access to send on behalf
but Unable to save search and If any one can assist to Get Email in last 24hours Which are not ...
0
votes
1
answer
38
views
I am using following code to automate sending emails to recipients however I want the code to read more than one cells while finding for the attachments to send to recipients.
For i = 2 To n
Set ...
-1
votes
1
answer
44
views
Want to validate the receving email has attachment
Set outObj= CreateObject("outlook.Application")
Set outAccount = outObj.Session.Accounts.item(1)
Set nameSpace = outObj.GetNameSpace("...
0
votes
1
answer
39
views
I do not undersand but it seems that the number of mails retrieved is constant at 254. Folder.Items.Count always return 254. When I run it every day. But I have more than 600 mails in the folder. 254 ...
0
votes
1
answer
30
views
Is there any possibility to access the automatic answering function of Outlook out of my humble WinFormsApp (C#)? To activate it directly out of my App for the time of vacations e.g.
Really appreciate ...
0
votes
1
answer
27
views
Is this possible to convert PDF file into DOCX with MS Word Interop library?
I see that that was possible via the UI - I was wondering if it could be done programmatically as well
0
votes
1
answer
120
views
I have updated below code to send multieple emails to assigned receipents however i am not able to paste the table into mailbox and email receipents are getting duplicated.
I need "Column E" ...
I am writing a C# application where I want to loop through the 500 most recent emails in a given folder. The reason is because getting all the emails takes a long time using the below lines:
...
0
votes
0
answers
46
views
When trying to download Excel files located in SharePoint into my Cloudera Workbench Directory,
I get the following error
from office365.sharepoint.client_context import ClientContext
from office365....
0
votes
2
answers
24
views
I want to extract Outlook mail fields such as "To", "From", "Subject", "Body" and "Timestamp" onto excel. The mail contains multiple replies/forwards ...
I've managed to write a piece of code (composed by multiple sources along the web, and adapted to my needs) which should do the following:
Reads an excel file
From column A to search the value of ...
not sure how do phrase this question but I really dont understand it.
I want to achieve the following:
TextBox = TextVorname
TextBox = TextNachname
For Example I put in the 1. Textbox "Markus&...
0
votes
1
answer
34
views
this is the code I am trying, I wanna resize the inserted picture in outlook. I tried differet methods but its not working. Could anyone tell which picture object/function or method I can use to ...
0
votes
1
answer
61
views
this is my first time posting and I admit I've not had any training on VBA, I've just figured out what I can by myself and from sites like this.
What I'm trying to do is to write something that will ...
0
votes
1
answer
35
views
I am new to this and I hope someone can help me. I am trying to automate saving attachments from all e-mails in certain folder. This is a daily process so it also deletes downloaded attachments. My ...
I have a project where i am writing VBA code to create a macro to retrieve specific paragraphs from hundreds of separate words documents. Here i have code that allows me to select which file i want to ...
0
votes
1
answer
58
views
I'm trying to run an old Project which was written years ago on a new System.
It's an .NET Project and it has references to Microsoft.Office.Interop.Excel, ...Outlook, ...Word, etc.
When i run the ...
0
votes
2
answers
36
views
I am trying to get an email body on basis of a particular sender name from the outlook inbox by using the win32.com client. However, it only return the COMObject Restrict
Here my code.
import win32com....
0
votes
1
answer
26
views
I am trying to convert DOC files with macros to DOTM with macros. My code changes the files but after the marco section is totally broken. When I convert it manually my macro code stays.
My code is:
...
Recently I have been trying to automatize some emails sending them directly from excel. I use the VBA below. It used to run perfectly, attaching both attachments and including text with my outlook ...
0
votes
0
answers
45
views
I have written a quite complex VBA script to run on a Word document to
(1) transform it into an email body (together with a bunch of other documents),
(2) combine it with other documents and save as ...