cdo mail with .xlsm attachment - receivers cannot enable macros - excel

I'm currently automating Excel to send an email with .xlsm attachment to users that contains vba within the workbook. When they try to open the file, they are receiving the following pop-up: "BLOCKED CONTENT"  Macros in this document have been disabled by your enterprise administrator for security reasons

That is because the company that receives your .xlsm file does not allow macros/VBA in their company (which is a very good decision actually). There is nothing you can do about it, as it is the rules/policy of that company and not your decision.
Note that most companys disallow macros from outside the company (and that every company should do that).

Related

Sharing Office Online Excel Scripts

I have an Excel script created in my Office Online account. I see where I can share that script with another user per workbook and also where I can share the script with another user as a whole in the manage access section of the .osts file itself.
I need the script to be accessible to an entire user - not just per workbook - so I've shared the .osts file with the second user.
That user can see the file in their shared files, but if they open an Excel file, it is not listed in their scripts. How do we get the shared .osts file to appear in the Automate tab when they open any workbook?
At this point, Excel only shows the scripts that are either (a) present in user's own OneDrive folder (documents/Office Scripts) or the ones shared on the workbook. We are working on enabling SharePoint based storage that you can use to share with everyone on the team and users can open it from their taskpane. For now though, the scripts can only be shared in the Excel workbook level.
Microsoft now allows scripts to be saved in SharePoint so that other users of the SharePoint site can access them. Script-storage

Edit and Send Outlook Form Template From Excel VBA

Currently, I have the Excel VBA code that will construct and send an Outlook email from Excel. However, I need to be able to use this VBA to open an Outlook form template that contains a command button and update the body of the message. I have been searching non-stop and cant find any good resources for accomplishing this, any good pointers, links, or supporting code would be greatly appreciated. Thanks.
You can save the form as a Microsoft Outlook template file (.oft), and then e-mail that file to users. If the form contains code or custom fields, the recipient will not be able to simply open the .oft file and publish it. The recipient will need to save the .oft file to the local drive, run it with the Tools | Forms | Choose Form command, and then publish the form to the Personal Forms Library.
Alternatively, you can use an .fdm file to install a form manually, see OL2000: How to Move a Custom Form to Another Computer.
Read more about Outlook forms in the To distribute Microsoft Outlook forms to other users article.
As a workaround you may consider creating a COM add-in with rich UI options which can be installed on the recipient's side and do whatever you need for users. See Walkthrough: Create your first VSTO Add-in for Outlook for more information.

Email from excel - supporting multiple platforms (Outlook, mac mail & mac outlook)

I would like to set up an excel form to essentially email a range of data, once a user has completed a task. Unfortunately my company uses multiple platforms,PC Outlook, mac Mail and mac Outlook. I can get each one to work in isolation using Ron de Bruin code, but wonder if I can somehow combine the three on an if else type scenario?
Or is there another way, like using a settings page on the form workbook and setting up a trigger which informs the code which scenario to run?
My current trigger to one scenario is as follows;
Unload Me
Application.Run ("masterDB.xlsm!Mail_Range_In_Excel2011")
Workbooks("MasterDB.xlsm").Close True
With the Mail_in_range being the Ron code. As a bit of background, the form sends data to the masterDB, where is picks up the next number in sequence, which forms part of the range being emailed out. This sequence number is important as it directs recipients to the correct data to build a report.
On the Windows platform you can automate Outlook to send emails. See How to automate Outlook from another program for more information. Also you may find the Using Automation to Send a Microsoft Outlook Message article helpful. But on the MAC platform you can't do that - there is no COM Automation technology exists for MACs.

Automatically Save Attachments on Lotus Notes 9.0 (Mac)

My employer (unfortunately) uses a Lotus Notes server. All company computers are Windows machines, but I am a Mac user. I have configured my e-mail on IBM Notes 9.0 for Mac.
It's tolerable, but I need some help with AppleScript or automating some features. Most emails I receive are reports in MS Word or PDF format. I would like to automatically copy all attachments to a folder on the Desktop. Can I do this with AppleScript or Automator on the Mac? Can I do this with actions in the Notes software itself?
Create a personal agent in your local replica of your mail database, which triggers on "when new documents are added". In this agent (it should be LotusScript or Java), call LNDocument.Detach. I do not believe that you can automatically detach from simple actions, but I have not doublechecked.
Be aware: Detach removes the file from the Notes document entirely. This could cause problems with compliance or any number of other things, so you want to check with your IT department what the policies are supposed to be. Make sure you follow them. Compliance's job is to keep your company from suffering additional penalties that could exceed your annual salary twofold or more when there's a lawsuit. (It's worse because when you replicate back up to the server, the changes you make to your local documents copy to the server and delete the attachments there as well.)

MS Word not trusted by Outlook?

a Delphi app automating Word mail merge and emailing via Outlook (Office 2007).
Windows XP2
Anti Virus Software Status -Valid
Trust Center Programmatic Access NEVER WARN ME.
(A different app not using Word but using Outlook emails without warning).
Yet Outlook Security Guard Warning Messages appear.
2 alerts per email x 700 email addresses = One angry customer.
Why? Without using a 3rd parry add-in, is there a way round this?
Is there a way to merge one record and the run some delphi code then another record merge? I can then bypass Outlook altogether
Outlook has no idea where the call comes from. Outlook VBA and COM add-in are explicilty trusted, any external code is not.
You will not see the prompt if you have up-to-date antivirus software.
Otherwise your option are listed at http://www.outlookcode.com/article.aspx?id=52
In your case (Mail Merge), try to do the mail merge to a file, then mail the files in your code using the workarounds listed at the URL above.

Resources