N
Nancy
I have been having some major issues with a template form that I have
been trying to add spellcheck to. This thread is a summary of compiled
correspondence so far with John McGhie
Nancy Ristow
Course Reporter
E-mail: (e-mail address removed)
www.capella.edu
Right... No wonder you ran into problems. That is one of the fiercest
macros we offer. It was written for PC Word, and it requires advanced
ability with VBA.
You had some red lines in there: you had not gotten rid of all of the
non-breaking spaces. You have to get the lot The easiest way to
do
that is to paste from FireFox (not Safari...) or to paste into Word,
then
Find/Replace non-breaking spaces into spaces
However: even after doing that, I discovered that you had left some
bits
out. You can't "delete" anything from that macro: the bit you run
calls the
other bits while its working.
I am looking right now for a
tutorial about learning Macros for Word X, but haven't seen any yet.
Here you go:
http://msdn.microsoft.com/library/default.asp?URL=/library/officedev/odeopg/
deovroffice2000visualbasicprogrammersguide.htm
In two or three years, you'll be good at it
Seriously: VBA is a complex and rich programming language, unless you
are
already familiar with programming languages, it may take two or three
years
to get up to the standard needed to take on things as complex as this.
Meanwhile, I think my template is a mess
Yep!
- I can only get so far down
the list trying to fix the red lines before I hit codes that I don't
understand. I am new enough to this macros thing that i don't
understand the tools either.
I went back to the website and pasted their original code in in its
place.
It works as advertised.
I came across another bug, that affects Word 2004 on the Mac (get rid
of
Word X, it's going to give you all manner of problems in this game...)
In Word 2004 (and probably, in Word X...) you cannot run macros if your
document is protected. To get around that, notice that I have put a
"Run
SpellCheck" button on the Standard toolbar. Click that to start the
macro.
To use this, you must create a document FROM the template. The macro
will
work on that. It probably WON'T work properly if you try to start it
from
the template itself, you must use it from a document based upon the
template.
Note that in Mac Word, unless you have the template in your My
Templates
folder, it won't allow macros to run anyway...
'Nuther warning: This macro will work in Word 2003, but it is a
SERIOUSLY
bad idea to try to move this template back and forth from Word X to
Word
2003. You will probably break it.
Instead, make a copy and use that on Word 2003. The difference is that
Word
2003 expresses text in Unicode, Word X uses Mac Roman: completely
different
character set. Word 2003 offers VBA version 6.5, Mac Word uses VBA
version
4.5. Anything written for Mac Word should work in Word 2003, but not
vice-versa. Mac Word is a cut-down version of Microsoft Word: it
doesn't
include the features needed for serious automation development.
Get back to us (on the newsgroup!!) if you have any more trouble
Hope this helps
been trying to add spellcheck to. This thread is a summary of compiled
correspondence so far with John McGhie
Nancy Ristow
Course Reporter
E-mail: (e-mail address removed)
www.capella.edu
Right... No wonder you ran into problems. That is one of the fiercest
macros we offer. It was written for PC Word, and it requires advanced
ability with VBA.
You had some red lines in there: you had not gotten rid of all of the
non-breaking spaces. You have to get the lot The easiest way to
do
that is to paste from FireFox (not Safari...) or to paste into Word,
then
Find/Replace non-breaking spaces into spaces
However: even after doing that, I discovered that you had left some
bits
out. You can't "delete" anything from that macro: the bit you run
calls the
other bits while its working.
I am looking right now for a
tutorial about learning Macros for Word X, but haven't seen any yet.
Here you go:
http://msdn.microsoft.com/library/default.asp?URL=/library/officedev/odeopg/
deovroffice2000visualbasicprogrammersguide.htm
In two or three years, you'll be good at it
Seriously: VBA is a complex and rich programming language, unless you
are
already familiar with programming languages, it may take two or three
years
to get up to the standard needed to take on things as complex as this.
Meanwhile, I think my template is a mess
Yep!
- I can only get so far down
the list trying to fix the red lines before I hit codes that I don't
understand. I am new enough to this macros thing that i don't
understand the tools either.
I went back to the website and pasted their original code in in its
place.
It works as advertised.
I came across another bug, that affects Word 2004 on the Mac (get rid
of
Word X, it's going to give you all manner of problems in this game...)
In Word 2004 (and probably, in Word X...) you cannot run macros if your
document is protected. To get around that, notice that I have put a
"Run
SpellCheck" button on the Standard toolbar. Click that to start the
macro.
To use this, you must create a document FROM the template. The macro
will
work on that. It probably WON'T work properly if you try to start it
from
the template itself, you must use it from a document based upon the
template.
Note that in Mac Word, unless you have the template in your My
Templates
folder, it won't allow macros to run anyway...
'Nuther warning: This macro will work in Word 2003, but it is a
SERIOUSLY
bad idea to try to move this template back and forth from Word X to
Word
2003. You will probably break it.
Instead, make a copy and use that on Word 2003. The difference is that
Word
2003 expresses text in Unicode, Word X uses Mac Roman: completely
different
character set. Word 2003 offers VBA version 6.5, Mac Word uses VBA
version
4.5. Anything written for Mac Word should work in Word 2003, but not
vice-versa. Mac Word is a cut-down version of Microsoft Word: it
doesn't
include the features needed for serious automation development.
Get back to us (on the newsgroup!!) if you have any more trouble
Hope this helps