Problems with Excel & Visual Basic Add-In

B

bob

Hi there.

I have an add-in that shows up in the menu when turned on. No problem there.

however, when I try to run it, it has a compile error. Another Mac in my
group also has this problem, yet others on PC don't have it.

Cripes, let's get this to work. I'm in an MBA and I don't want the Mac to
trip now. I'm battling so many PC users.

Cheers
 
J

J.E. McGimpsey

I have an add-in that shows up in the menu when turned on. No problem there.

however, when I try to run it, it has a compile error. Another Mac in my
group also has this problem, yet others on PC don't have it.

Cripes, let's get this to work. I'm in an MBA and I don't want the Mac to
trip now. I'm battling so many PC users.

The macro probably

a) uses ActiveX controls, which are unavailable on Macs. The fix is
to use controls from the Forms toolbar.

b) uses VBA6 commands, like Replace(), Join(), Split(),Round(),
etc., which are available on WinXL00 and later. MacXL (all versions)
and WinXL97 are at VBA version 5. The fix is to use VBA5 commands,
or write substitutes for them and conditionally compile (I have
written substitutes for all the above and more, post back if you
need assistance).

or c) uses one of the few commands that have actual syntax
differences (such as the GetOpenFilename method's FileFilter
argument). The fix is to conditionally compile using Win or Mac
syntax.

If you have access to the code (i.e. if you're given the option to
select Debug when you get the error), you may be able to determine
the problem. If the add-in is non-proprietary, you can also send it
to me (compressed as a .sit or .zip file). I usually set up a screen
that allows messages with attachments from known addresses, but
unless you're really a TLD pioneer, I suspect your email is bogus.
If you post back that you're sending it, I'll try to keep an eye out
for it, but since I typically get over 2000 spams a day, I won't
guarantee that I won't miss it.
 
B

bob

"J.E. said:
The macro probably

a) uses ActiveX controls, which are unavailable on Macs. The fix is
to use controls from the Forms toolbar.

b) uses VBA6 commands, like Replace(), Join(), Split(),Round(),
etc., which are available on WinXL00 and later. MacXL (all versions)
and WinXL97 are at VBA version 5. The fix is to use VBA5 commands,
or write substitutes for them and conditionally compile (I have
written substitutes for all the above and more, post back if you
need assistance).

or c) uses one of the few commands that have actual syntax
differences (such as the GetOpenFilename method's FileFilter
argument). The fix is to conditionally compile using Win or Mac
syntax.

If you have access to the code (i.e. if you're given the option to
select Debug when you get the error), you may be able to determine
the problem. If the add-in is non-proprietary, you can also send it
to me (compressed as a .sit or .zip file). I usually set up a screen
that allows messages with attachments from known addresses, but
unless you're really a TLD pioneer, I suspect your email is bogus.
If you post back that you're sending it, I'll try to keep an eye out
for it, but since I typically get over 2000 spams a day, I won't
guarantee that I won't miss it.


OK, I'll email you. I have no access to the code, so perhaps there might
be a fix, or perhaps an alternative, as it's just an iteration or
simulation pack.

Cheers
 
J

J.E. McGimpsey

OK, I'll email you. I have no access to the code, so perhaps there might
be a fix, or perhaps an alternative, as it's just an iteration or
simulation pack.

I took a brief look at the code (though I didn't unlock the project)
and it uses VBA6 functions which Mac VBA (5.0) doesn't support.

The Get Help menu that the add-in installs says it's a freely
distributable beta project and has the author's email address. Have
you tried contacting him or her? If there's an interest in making it
cross-platform, I've done a number of similar translations, but only
with the author's permission.
 
J

J.E. McGimpsey

J.E. McGimpsey said:
I took a brief look at the code (though I didn't unlock the project)
and it uses VBA6 functions which Mac VBA (5.0) doesn't support.

The Get Help menu that the add-in installs says it's a freely
distributable beta project and has the author's email address. Have
you tried contacting him or her? If there's an interest in making it
cross-platform, I've done a number of similar translations, but only
with the author's permission.

Ooops - reread your email and see that you've been in contact. If
the author will give the password, I'd be glad to take a look at the
entire thing.
 
T

This Guy

"J.E. said:
I took a brief look at the code (though I didn't unlock the project)
and it uses VBA6 functions which Mac VBA (5.0) doesn't support.

The Get Help menu that the add-in installs says it's a freely
distributable beta project and has the author's email address. Have
you tried contacting him or her? If there's an interest in making it
cross-platform, I've done a number of similar translations, but only
with the author's permission.

Hi there. The author is indeed at my school, and am in touch with them
through email. I don't think there's any restrictions on it, as they
don't know anything about Macs.

Could I ask that you do the transition if it isn't too much, then I'll get
permission in the meantime? It would really help me out as I need it for
my degree. I use it in exam situations. I don't know what it would take
for such a transition. I don't do VB.

Cheers
 
T

This Guy

"J.E. said:
Ooops - reread your email and see that you've been in contact. If
the author will give the password, I'd be glad to take a look at the
entire thing.

ok I will email him to see what's up.

Cheers. Appreciate the help.
 
J

J.E. McGimpsey

Could I ask that you do the transition if it isn't too much, then I'll get
permission in the meantime? It would really help me out as I need it for
my degree. I use it in exam situations. I don't know what it would take
for such a transition. I don't do VB.

I'd have to look at the add-in to tell you . Some work I've done
for free because it's interesting or useful to me. Other times I've
required it be done under my standard commercial contract (see
http://www.mcgimpsey.com/excel/consulting.html)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top