![]() |
#1
|
|||
|
|||
![]()
hi-
I have distributed a macro to some people in another location. I password protected this macro so no one can see or alter the code. The macro worked fine for a while but now it doesn't. It gets the following error message, "compile error in hidden module: Converter". I think they need to turn on a Reference...(Microsoft Forms 2.0 Object Library) I told them to do this but they can't seem to add this reference because the macro is protected. Help!!! ![]() |
#2
|
||||
|
||||
![]()
Rick,
I don't think this is MS Form Designer library which is not available. Did you use any of the custom controls on your form (not those provided by VBA, but some 3rd party OCX controls?). If so, chances are that your customers don't have that control anymore. All they need to do is to (re-)install it. Go to the project on your machine and see what other 3rd party libraries are referenced for the project (in both Tools>References for the project [GMS file] and in Tools>Additional Controls for each form in the project). I hope this helps. |
#3
|
|||
|
|||
![]()
so...all they need to do is re-install the macro?
|
#4
|
||||
|
||||
![]() Quote:
|
#5
|
|||
|
|||
![]()
My macro is based on the FileConverter macro that comes with CorelDraw. I just stripped it down so that the conversion settings are hard coded instead of user defined. I delivered it by just sending the .gms file and telling them to save it in the GMS folder.
Everything worked great for two weeks then it got buggy. I gave away my password to unlock the code and found that the error was in a line of code that I wrote to time out the macro in 6 months. Unfortunately, the folks using it live in India and they all have their system date set differently than my code would allow. I just removed this function and it worked. (I thought) Today they are getting an error when they click on the browse button on the source section form. (see FileConverter macro) What's crazy is that everything worked great for the first two weeks, then all of the sudden it quit working!!! I really don't want to give away all of my code. What can I do to ensure that it works everytime? |
#6
|
||||
|
||||
![]()
Apparently there are issues with your code. The fact that it worked for two weeks doesn't mean that the problem just creeped in later. It was there all along, just the condition to trigger it wasn't occuring (e.g. they never browsed a network drive or they didn't try to pick up a hidden folder or maybe the file name contained Unicode characters which couldn't be represented as an ANSI string, or stuff of that sort).
What I do in situations as these is I ask the customer the exact steps it took to reproduce the problem, maybe some sample files, etc and then investigate the problem on my end. Fix the code and ship another version. |
#8
|
|||
|
|||
![]()
If this macro was an add-in would it resolve the references issue?
|
#9
|
||||
|
||||
![]() Quote:
As I suggested, ask your customers to reproduce the steps to recreate the condition which leads to the problem and then investigate the issue yourself. If everything is done correctly, you will have no issues. |
#10
|
|||
|
|||
![]()
I think initially it did have a bug. ...but now I think it is an issue with references. I would like to make this an add-in because it with be compiled and no one can see my code and it will make deploying it easier.
My next question is can I create this add-in with Visual Studio .NET? |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How can I make a macro time out? | Rick Randall | CorelDRAW/Corel DESIGNER VBA | 6 | 09-02-2005 11:16 |
An Idea for a handy and easy to make macro | vallentin | Macros/Add-ons | 2 | 16-03-2004 11:35 |
New macro to clip curves w.r.t. a border | Gerard Hermans | Macros/Add-ons | 0 | 09-06-2003 07:50 |
How to draw macro on toolbar? | lywlywlywlywlyw | Corel Photo-Paint VBA | 2 | 04-04-2003 18:57 |
Speeding up a macro | Rick Randall | CorelDRAW/Corel DESIGNER VBA | 2 | 12-12-2002 10:51 |