Frustrating.
I tried to view all the formating contained in the template, but couldn't
find any insertion/cursor point before the point where I want it.
Should I give up?
--
Joan
:
It seems as if you need to re-insert the bookmark in the correct
location. Place the insertion point at the desired location. On the
Insert menu, click Bookmark. Click the "macroLocate" name, and then
click Add. This moves the bookmark to the chosen location.
Note that you can display bookmarks in order to work with them more
easily: On the Tools menu, click Options. Click the View tab. Click to
check the "Bookmarks" option, and then click OK.
--
Stefan Blom
Microsoft Word MVP
in message
I did as you suggested.
It did get rid of unwanted toolbars that were appearing after I
stopped
running the macro when I saved an opened the template.
Yes, I am working with a template.
Problem now: When I open the template the cursor precedes the word
Memo.
How do I get rid of it?
*Memo
To: *bookmark
Thanks for your help.
Shall look forward to reply.
--
Joan
:
Did you make sure to insert the bookmark and create the macro in
the
template (*.dot file)? You cannot do this in a document created
from
the template.
Note that you can remove the references to Selection.Find in the
recorded macro; all you need is this:
Sub AutoNew()
Selection.GoTo What:=wdGoToBookmark, Name:="macroLocate"
End Sub
--
Stefan Blom
Microsoft Word MVP
in message
Problem began with step 6 of your instructions.
1. I open template
2. Insert Bookmark, named it "macroLocate"
3. Saved the template [named it at same time]
4. Turned on Macro Record
5. Typed: "AutoNew"; Selected the document to be saved in. hit
ok
6. typed Ctrl+g, selected name of bookmark;go to;ok
Stop recording macro.
The following may help you find what I did wrong. Been trying
for
2hrs. : - (
Sub AutoNew()
'
' AutoNew Macro
' Macro recorded 1/28/2007 by Joan O'Callaghan
'
Selection.GoTo What:=wdGoToBookmark, Name:="macroLocate"
Selection.Find.ClearFormatting
With Selection.Find
.Text = ""
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
End Sub
--
Joan
:
Hi Joan:
1) Open the template you want to use.
2) Insert a bookmark at the place you want the cursor to go,
named
appropriately (e.g. "macroLocate"). It doesn't matter what
the
name is so
long as you can remember it. But it's a good idea not to use
a
name you
might want to use later for some other bookmark.
3) Save the template.
4) Turn on the Macro Recorder
5) Type "AutoNew" as the name of the Macro and make sure you
change the
"Save macro in" field to the name of your template. The macro
must be named
AutoNew spelled just like that or it will not operate
correctly.
6) Hit Ctrl + g, choose the name of the bookmark, then hit
OK.
You can't
record mouse or cursor movements, hence using Ctrl + g -- Go
To --
And
choosing the name of the bookmark.
If you do this right, any time anyone creates a new document
from
that
template, the cursor will go where you put the bookmark. The
AutoNew name
cause the macro to run each time a new document is created
from
the
template.
You will need to look up Macro Recorder in the Help. This
isn't
easy: you
may not get it right on the first attempt

Have a couple
of
tries then
get back to us if you have difficulty.
Cheers
On 24/1/07 5:05 AM, in article
(e-mail address removed), "JoanOC"
I would still like to try. Would you please tell me how.
Thanks.
--
Please reply to the newsgroup to maintain the thread. Please
do
not email
me unless I ask you to.
John McGhie <
[email protected]>
Microsoft MVP, Word and Word for Macintosh. Business Analyst,
Consultant
Technical Writer.
Sydney, Australia +61 (0) 4 1209 1410