i have tried adding a reference to a DLL from a Macro project in ms word. the dll has been build using MS Visual web Express 2010 with this official MS Knowledgebase article
http://support.microsoft.com/kb/317535
but im getting this error when trying to add it to my macro as a reference:
error http://img29.imageshack.us/img29/5859/13082012111759.png
As said, i followed all steps in the knowledgebase article.
What can i do?
Your component/class needs to be com-visible!
Try to specify the ComVisibleAttribute.
Then it must be registered with your system.
Related
Hi I am currently trying to upgrade an access 2007 file to 2013. I have opened it and tried to run it ,unfortunately under references it does not display "Missing" for me to check. I have added some that work but I am having a "user-defined type not defined" error with
' Requires reference to "RightFax COM API Type Library"
Dim faxSvr As RFCOMAPILib.FaxServer
And in the References I do not see any rightfax com API type library to check. Is there something I need to download and add? or is rightFax compeletely removed from access 2013?
Any help appreciated Thank you.
You might have to register the DLL or install the software again - RightFax doesn't come with any version of MS-Access
It's a third party application. RightFax has a COMAPI that uses the file RFCOMAPI.DLL - if you can find it on your old system, and register it, you might just get lucky
thanks guys. I have found the correct DLL files to add to the references. Glad some one left a folder with these files in the old server. Googling for them turned up few results.
Im trying to display records from my access 2010 64 bit database into word footer, when I run the code I get ActiveX can not create object. I do have reference in my vba project microsoft dao 3.6 object library and microsoft activex data objects 6.1 libraries. The code is working fine on 32bit but not 64 bit. Any ideas? Debug pointing to this line as error:
Set dataBase = DBEngine.OpenDatabase(UsersBasePath)
I had to add dao in the front of the database declaring statement
I'm very new to visual studio and visual basic.
I already studied the basics of visual basic so I tried stepping up a little and play with database in visual basic. I'm using visual studio 2010.
I first made an access database. I followed the instructions that I searched on the net on how to connect it to your visual basic program. Data>Show Data Source>Add Data Source> ...
But when I search on how to do it, I became really confuse because of these things:
Is vba and vb the same?
all the tutorials are for access but why do they still need to have a stringconnection when they already connect it using what I did?
they are searching for .mdb but the extension of my access database is .accdb?
they have an sql query for inserting the datas from the csv file but the pc that will be using the program don't have sql installed but mysql. Will it still work?
I'm still noob in these things so please if anyone can shed some light in these questions, thank you very much. >.<
VBA and VB 6.0 are almost the same. Main difference is that VBA is intended to be host in application like Excel, Word ....
BUT language you probably use with VS 2010 is VB.NET and that is something different. VB.NET is object oriented language which target .NET Runtime and Framewor. See Difference between Visual Basic 6.0 and VBA
Connection string is a string that specifies information about a data source and the means of connecting to it.
In .NET this describe (or can) path or location, provider, credentials and other informations. See MSDN Connection string in .NET
If I'm correct MDB is older format and ACCDB is format used by Microsoft Office Access 2007 and newer. Here is post how to connect to access db file: SQL connection string for microsoft access 2010 .accdb
But do you realy need to use acess database? There are better alternatives.
There is no need of real database engine for your scenario. You wanna to use standalone file as a datasource, dataprovider will be responsible for interaction with datasource. E.g. OleDB provider
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.
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.