Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Applications / Word / March 2006



Tip: Looking for answers? Try searching our database.

Can't view VBA project when moved from Windows

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gary Hillerson - 13 Mar 2006 18:25 GMT
I'm hitting a strange problem. I've got a large project that I'm
porting from Office on Windows to Office on Mac OSX.

On Windows, I open the project in the VBE, then tell it to remove
protection, so it'll be viewable without a password. If I close Word,
reopen that file, and go back into VBE, I can view the macros just
fine.

I move the file across my network to my Mac. Open it, and try to
access the macros in VBE on the Mac, and I get a Project locked for
Viewing message. Furthermore, there's no opportunity to enter a
password and view the project.

Can anyone help with this. I'm trying to debug on the mac, and can't
get to my macros to see what's going on.

Thanks in advance,
  gary hillerson
Beth Rosengard - 13 Mar 2006 22:02 GMT
Hi Gary,

This may be way off track since I know nothing about VBE issues, but try
this:  Navigate to the file in the Finder, select it and do a Get Info
(Cmd-i).  In the Ownership & Permissions section, make sure you have Read &
Write selected.

Signature

***Please always reply to the newsgroup!***

Beth Rosengard
MacOffice MVP

Mac Word FAQ:  <http://word.mvps.org/Mac/WordMacHome.html>
Entourage Help Page:  <http://www.entourage.mvps.org>

On 3/13/06 9:25 AM, in article unab12d7fihi7ocou4letgu5jb0gg0nt7a@4ax.com,


> I'm hitting a strange problem. I've got a large project that I'm
> porting from Office on Windows to Office on Mac OSX.
[quoted text clipped - 14 lines]
> Thanks in advance,
>    gary hillerson
John McGhie [MVP - Word and Word Macintosh] - 13 Mar 2006 23:28 GMT
Hi Gary:

Sorry, the Mac VBE can't handle projects that are or ever were protected in
any way.  It detects the digital signature, but since it can't handle it it
falls through to a catch-all that simply disables the project.

You need to take it across to the Mac as text and re-create the project
there.

I strongly suggest that you port that project to AppleScript on the Mac.
You will find that Mac Word VBA is simply not up to the task.  Ping me
offline if you need more...

Cheers

On 14/3/06 4:25 AM, in article unab12d7fihi7ocou4letgu5jb0gg0nt7a@4ax.com,

> I'm hitting a strange problem. I've got a large project that I'm
> porting from Office on Windows to Office on Mac OSX.
[quoted text clipped - 14 lines]
> Thanks in advance,
>    gary hillerson

Signature

Please reply to the newsgroup to maintain the thread.  Please do not email
me unless I ask you to.

John McGhie <john@mcghie.name>
Microsoft MVP, Word and Word for Macintosh.  Consultant Technical Writer
Sydney, Australia +61 (0) 4 1209 1410

Gary Hillerson - 14 Mar 2006 02:40 GMT
It's well beyond porting to AppleScript -- a very, very large piece of
code that's taken many years to evolve into its current state. I
simply haven't the time to port it, since the main customer base is on
the PC. I'm trying to make it available on the Mac, but don't have the
resources required to put a ton of effort into that.

The worst part is that it almost works fine. Most of it works fine.
But when I hit a little hitch, i pretty much have to work on the code
on my PC, and test on the Mac. VBE on the Mac sucks!

So, if i'm reading you correctly, I can on my PC export all of the
userforms and modules (about 100 in all), create a new, unprotected
project, import them all into that project, and then copy that over to
the Mac. I'll try that in a few minutes.

thanks,
 g

>Hi Gary:
>
[quoted text clipped - 31 lines]
>> Thanks in advance,
>>    gary hillerson
Jim Gordon MVP - 15 Mar 2006 02:37 GMT
Hi Gary,

You can password protect your project on the Mac, but you can't use a
digital signature. Signed code is not supported.

VBA on the Mac is VBE version 5. Any commands exclusive to VB 6 will not
work, but there's almost always a work-around. Active-X is Open Source
and has not been ported to the Mac, so anything that's an Active-X
control will not work unless you feel like porting Active-X (sounds like
you've already got a full plate).

The VBE on the Mac is plain-Jane. It gets the job done, but there's
nothing fancy there.

For future reference keep in mind that Microsoft has announced that VBA
is going to go away some day in the future (for Windows, but it's almost
certainly true for Mac, too). No such announcement was made concerning
AppleScript, which is why it was suggested as a VBA alternative.

If you find there's a syntax or something that you can't get to work,
search Google first but remember there are folks here who can help, too.

-Jim

Signature

Jim Gordon
Mac MVP
MVP FAQ
<http://mvp.support.microsoft.com/default.aspx?scid=fh;EN-US;mvpfaqs>

> It's well beyond porting to AppleScript -- a very, very large piece of
> code that's taken many years to evolve into its current state. I
[quoted text clipped - 49 lines]
>>>Thanks in advance,
>>>   gary hillerson
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.