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