Adding Outlook Object Library to Excel 2011 for Mac - vba

I am trying to move a VBA macro code from Excel 2003 to Excel 2011.
The macro requires sending an Email from Outlook. However, when I went to Tool > References to add the Outlook Object Library, it does not show up in the List box.
How do I go about adding the reference in so i can access Outlook?

As of my knowledge Office Automation in the MAC world is somehow limited. Please see this discussion. Also this one in a Microsoft Forum..

You can add reference by using Browse option.
You just need to add reference to the file "MSOUTL.OLB"
In my system I have it in "C:\Program Files\Microsoft Office\Office12\MSOUTL.OLB" , In your system it could be in different folder.

Related

Access database "Corrupt" in 2007; opens in 2010

I have an accdb database that is used by multiple individuals and stored on a network share. When opened in Acccess 2007 the following message appears:
Cannot open database "\\databasepath\filename.accdb". It may not be a database that your application recognizes or the file may be corrupt
Access 2010 opens the database with no problems.
What is the most common cause of this issue? I searched for database repair tools and can't find any Microsoft tools for accdb files (JetCompact didn't do it). I ran a compact and repair via Access 2010, did a save as locally and then copied it over to the share - no effect.
Other than magically upgrading all my users to Access 2010 (which won't happen) I'm in the dark here.
You may have some features you're using in 2010 that aren't supported in 2007.
Look here for more info.
Most likely someone opened it in 2010, edited your report and saved the change. This will break 2007 every time. 2010 is NOT backwards compatible with 2007
I would make a back-up, make another back-up and then first try importing all but the tables that contain attachments into a new database.
you can also check this: https://dba.stackexchange.com/questions/71906/ms-access-mdb-ldb-database-corrupted

VBA code import

I have a VBA project I am doing in excel. I will have many workbooks that will use the same code and I do not want to have to copy the code to all the workbooks if I make a change. Is there anyway to have the code in one central place and then have all the workbooks access that code?
Yes, you have two options
1) Copy and paste the code in the Personal workbook.
More details here
Topic: Deploy your Excel macros from a central file
Link: http://office.microsoft.com/en-us/excel-help/deploy-your-excel-macros-from-a-central-file-HA001087296.aspx
2) Create an Add-In
Mode details here
Topic: Creating An XLA Add-In For Excel
Link: http://www.cpearson.com/excel/createaddin.aspx
Note: You can create Add-In in VBA as well as Visual Studio. For COM Add-Ins (created using Visual Studio), please refer to this link.
Topic: Office Development with Visual Studio (VSTO)
Link: http://msdn.microsoft.com/en-us/office/hh133430
HTH
Sid

creating an excel add-in

can someone please get me started on the following:
i would like to package an excel macro as an add-in to excel. the macro will reside on a central computer, where 10 other computers will connect to.
how do i create an add-in that will be constantly updated ?
According to this you can have an Add-In reside on a network share, so you wouldn't even need to bootstrap and update the code via code. Here's a quick rundown on how to create an Add-In.

Add VBA code to a MS Word document using Perl

I have a Perl script that can define and write MS Word VBA according to the user's input.
How can I make the Perl script open Word and add the VBA code into its code data base?
You can do that by accessing the VBProject property of the document. However, with recent versions of Microsoft Office, you will likely get:
OLE exception from "Microsoft Word":
Programmatic access to Visual Basic Project is not trusted.
See You may receive an run-time error when you programmatically allow access KB article for more information.
Or, you can try to do it the primitive way by sending keystrokes to Word using Win32::GuiTest.

Office 2007/2003 VSTO Shared Add-In Design Query

I am designing a shared add-in using VB.Net 2008 and VSTO that has to fire up when any MS Office App is started. It has to work for both 2002, 2003 and 2007 applications. I have managed to put together a working add-in that pops up a test message stating the version of Office and the Application name and tested this across all the apps ok.
The next part of the solution is to code the application specific code that needs to run for document auditing and corporate protective marking as well as, for example; in Excel checking that all the Add-Ins are linked to the Network Add-Ins folder.
My approach from now was going to be to late bind against the application object and set one of my typed (e.g. Excel) application object references which exist in the code to this object.
I'm still relativly new to VSTO so if I am doing something odd please can you let me know! :)
Ta.
I have completed this project and did it the way I specified using late bindig. It works lieka dream for all office apps both XP and 2007. :) I feel like I am announcing this to myself though as I didn't recieve a single answer or comment. Maybe you should have sexed up the title a bit Mas. Yeah maybe I should.