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 / June 2007



Tip: Looking for answers? Try searching our database.

compile error: invlaid outside procedure

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
brinded - 26 Jun 2007 21:45 GMT
I had a macro setup to open new word documents in 'online view' with a
few other settings. It's worked fine for years. Now it seems to have
been corrupted. When I hit cmd-n I get a box saying, "compile error:
invlaid outside procedure."

The same message comes up when I try to delete or edit macros.

Any ideas/thoughts?

Thanks, dg
John McGhie - 27 Jun 2007 04:37 GMT
Where's the yellow line?

The compiler will stop with the error highlighted (in this case, it will
highlight the name of the procedure).  The error should be obvious if you
examine the code.

Pay particular attention to the nesting of Sub... And End Sub statements,
and make sure you have not inadvertently commented one out.

Are you translating from a different language?  I have never seen that
SPECIFIC error, and I do a lot of VBA...

Cheers

On 27/6/07 6:45 AM, in article
1182890708.499265.304160@e16g2000pri.googlegroups.com, "brinded"
<cktwr@yahoo.com> wrote:

> I had a macro setup to open new word documents in 'online view' with a
> few other settings. It's worked fine for years. Now it seems to have
[quoted text clipped - 6 lines]
>
> Thanks, dg

Signature

Don't wait for your answer, click here: http://www.word.mvps.org/

Please reply in the group.  Please do NOT email me unless I ask you to.

John McGhie, Consultant Technical Writer
McGhie Information Engineering Pty Ltd
http://jgmcghie.fastmail.com.au/
Sydney, Australia.  S33°53'34.20 E151°14'54.50
+61 4 1209 1410, mailto:john@mcghie.name

brinded - 27 Jun 2007 04:50 GMT
John, thanks for the response. Trouble is, I can't open the editor. It
will allow me to create a new macro, in fact I have made a couple of
test macros in an effort to troubleshoot. However, if I list macros,
and then select 'edit' (or 'delete'), it gives the pop-up message
"compile error: invalid outside procedure." Same as I get when I hit
cmd-n.

Could this be a virus? It seemed to happen spontaneously, I hadn't
been doing anything unusual at the time, i.e. I wasn't in the process
of creating a macro (I haven't done that in about a year). Maybe I
inadvertently hit a combination of keys? (My typing is lousy). I don't
know.

> Where's the yellow line?
>
[quoted text clipped - 34 lines]
> Sydney, Australia.  S33?53'34.20 E151?14'54.50
> +61 4 1209 1410, mailto:j...@mcghie.name
brinded - 27 Jun 2007 04:59 GMT
I think I've found it - I restarted and the application opened in VBE.
At the top of the list of my macros was some stray text - I deleted it
- and now it seems to be working fine. Thanks again for your effort -
much appreciated.

> John, thanks for the response. Trouble is, I can't open the editor. It
> will allow me to create a new macro, in fact I have made a couple of
[quoted text clipped - 47 lines]
> > Sydney, Australia.  S33?53'34.20 E151?14'54.50
> > +61 4 1209 1410, mailto:j...@mcghie.name
John McGhie - 28 Jun 2007 01:12 GMT
Yep:  You've got it :-)

I'm a crap typist too, but that's one I have never done to myself.

I could give you a long list of the ones I HAVE done....  :-)

Cheers

On 27/6/07 1:59 PM, in article
1182916749.529504.322320@x35g2000prf.googlegroups.com, "brinded"
<cktwr@yahoo.com> wrote:

> I think I've found it - I restarted and the application opened in VBE.
> At the top of the list of my macros was some stray text - I deleted it
[quoted text clipped - 52 lines]
>>> Sydney, Australia.  S33°53'34.20 E151°14'54.50
>>> +61 4 1209 1410, mailto:j...@mcghie.name

Signature

Don't wait for your answer, click here: http://www.word.mvps.org/

Please reply in the group.  Please do NOT email me unless I ask you to.

John McGhie, Consultant Technical Writer
McGhie Information Engineering Pty Ltd
http://jgmcghie.fastmail.com.au/
Sydney, Australia.  S33°53'34.20 E151°14'54.50
+61 4 1209 1410, mailto:john@mcghie.name

 
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



©2008 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.