Excel, VB macro, MSCOMM and standard user - vba

I have a device operated via Excel through com ports with MSComm32. Some macro linked to buttons on Excel forms used to make this device work properly. Up to these last days when it suddenly stopped working.
After some investigations, it seems there are some security considerations applied within Excel. The Excel file used up to now does not work anymore if Excel is runs as a standard user. An error message indicates the control cannot be created when trying to enter the creation mode, for example. But, if Excel is run as Administrator, then everything works fine.
Is there an easy way to fix this? For example granting access rights to standard user for the module MSComm32 OCX?
Thanks!

Related

Attaching Microsoft Date and Time Picker Control to Excel file

I am currently using Microsoft Date and Time Picker Control on my Excel file and it works fine on my computer. But when I send it to someone, it says they're missing the file.
My question is whether it is possible to install it for the user
automatically so it does not say the control is missing from their
computer?
This is for a school project that maximizes the user experience, therefore I would need it to be simple and easy to setup.

Publishing ACCDE Version Drops All Macros

I have a MS Access Database Frontend that contains a large body of macros, queries, and custom VBA code. This frontend connects through linked tables to our backend access database. In order to allow multiple users to use the database we publish an ACCDE version. For some reason macros are not being included in this published version. Normally you can't see the code but the module names are always listed. This is completely blank, no macros, no vba, and auto exec fails to call a few custom functions as well. VBA code is simply not included.
I've tried:
Compiling the VBA Code -> Works without errors and publishing still doesn't include macros
Saving my frontend as a new file and then publishing
Compact and Repair
Different OS/Different Version of Access/Different Computer
I'm not seeing any errors when publishing, all my references are there, there's no reason for this to be failing as far as I can tell. The only indication that this happened is opening the ACCDE version and getting an error about auto_exec being unable to locate my function.
Ideally I'd like to not have to restore a version and lose changes that I've made.

How to visually indicate Excel add-in "state"

I have a VB.Net Excel add-in that queries a SQL Server database through several user-defined functions. There are also a couple of custom ribbon tabs, one of which presents the user with a form where they can select the appropriate server and database, and test to see that a connection can be made. Once a successful connection test has occurred, the customer would like the add-in to somehow indicate that the user is “connected”. Right now I’m playing around with a really small user form that contains no other controls, and has a .Text property of “CONNECTED” or “NOT CONNECTED” depending on the state of a connection test. This works, but isn't perfect since the form can be moved, and won’t follow Excel if the user chooses to move the application to a second monitor. I was wondering if anyone has worked with something similar before, or has other ideas.

How do I edit an Access ADP file?

So I have this Access Database Project file that I have been tasked to edit. I have Access 2003 and 2007 installed. The ADP only supports 2003 for some reason. Anyway, the issue I have is that I can't figure out how to get to the VBA code in behind things.
The previous developers have done a very good job of locking everything down on the GUI such that the only thing I get when I open the application is a notice saying that it can't find the database on the server. (More than likely there is a problem there too, but since I can't look at code I don't know for sure.)
Does anyone know how to get around the GUI lockdown that has gone on here?
Michael
As it turns out, you can edit an ADP file that has all of the form information turned off by finding the file using Windows Explorer by highlighting the file, then hold shift, and then hit enter. You continue to hold shift until the interface is loaded.

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.