Duplicate template icons in Project Gallery

M

mansky99

Hi all,
In debugging some crashes in Word 10.1.8 on my PowerMac G4 (10.3.9), I
noticed that there are two entries in the Project Gallery for each template
we have in the "My Templates" folder.

How do I get rid of the extra icons shown in the Project Gallery? BTW,
clicking on either template icon does create a new document based on that
template. There is of course only 1 copy of the template (*.dot file) in the
"My Templates" folder.

I suspect the extra pointer to the template is causing some of the
crashes. That is, in resolving the extra pointer to the template, Word
crashes.

Is the best way to clean up the Project Gallery by running the Remove
Office script first, then to do a re-install of the entire Office suite?

Or, is there a VBA command I can run to clean up the Project Gallery?

Any tips or ideas would be greatly appreciated!

Thanks,

Ed
 
J

John McGhie

Hi Ed:

Project Gallery should clean itself up if you simply reboot the computer.

I am not aware of it storing file-names anywhere: it reads them from the
system when you open it.

Just make sure you do not have a shortcut or alias to some other folder that
also contains templates. If you have, Project Gallery will show both :)

If Project Gallery thinks it has two files, when you click on each one, it
should show you where it is.

Hope this helps


Hi all,
In debugging some crashes in Word 10.1.8 on my PowerMac G4 (10.3.9), I
noticed that there are two entries in the Project Gallery for each template
we have in the "My Templates" folder.

How do I get rid of the extra icons shown in the Project Gallery? BTW,
clicking on either template icon does create a new document based on that
template. There is of course only 1 copy of the template (*.dot file) in the
"My Templates" folder.

I suspect the extra pointer to the template is causing some of the
crashes. That is, in resolving the extra pointer to the template, Word
crashes.

Is the best way to clean up the Project Gallery by running the Remove
Office script first, then to do a re-install of the entire Office suite?

Or, is there a VBA command I can run to clean up the Project Gallery?

Any tips or ideas would be greatly appreciated!

Thanks,

Ed

--
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/
Nhulunbuy, Northern Territory, Australia
+61 4 1209 1410, mailto:[email protected]
 
M

mansky99

Hi John,
I figured out what was going on. In Word's Preferences/File Locations,
both User Templates and Workgroup Templates were defined and had values that
were the same. Both pointed to /Applications/Microsoft Office X/Templates
which is the parent folder of "My Templates".

On my development platform, which did not have Workgroup Templates
defined, I defined Workgroup Templates to point to the same folder as User
Templates, and bingo, I get two of every template showing up in Project
Gallery. Initially I had only one of each template show up in Project Gallery.

These values in File Locations are all stored in the object
Options.DefaultFilePath.

Curiously, when I wrote and ran a 3 line VBA macro to re-set the Workgroup
Templates variable back to null (""), the value that got inserted was the
base folder where Word is (/Applications/Microsoft Office X). I tried other
values like my $HOME folder (/users/mansky) and root folder, as well as null.
No other value would work. Couldn't re-set to null via a VB macro, and when I
tried $HOME (for example), Word hung completely up when I tried to bring up
the Project Gallery. Had to Force Quit the Word app.

I even tried deleting the Word Settings file in
$HOME/Library/Preferences/Microsoft to no effect. After deletion, the
WorkgroupTemplates value was still the base folder where Work lives.

Seems like the only way to get null back as the value for
WorkgroupTemplates (or any other File Location that has been once defined) is
to run the RemoveOffice script and re-install Office. :(


Do you know any other way to re-set WorkgroupTemplates to null once it's
been defined?


Here's the snippet of VB code I used:

If (Len(Options.DefaultFilePath(Path:=wdWorkgroupTemplatesPath)) > 0) Then
Options.DefaultFilePath(Path:=wdWorkgroupTemplatesPath) = ""
End If


Ed
 
J

John McGhie

Hi Ed:

Thanks for including your name, it makes the whole place seem more friendly
:)

That's a bug: The mechanism should be smart enough to resolve the duplicate
paths :)

I think if you Remove or rename ~/Library/Preferences/Microsoft/Word
Settings (10) that should do it. Sorry, I don't have X here to try it.

Cheers


Hi John,
I figured out what was going on. In Word's Preferences/File Locations,
both User Templates and Workgroup Templates were defined and had values that
were the same. Both pointed to /Applications/Microsoft Office X/Templates
which is the parent folder of "My Templates".

On my development platform, which did not have Workgroup Templates
defined, I defined Workgroup Templates to point to the same folder as User
Templates, and bingo, I get two of every template showing up in Project
Gallery. Initially I had only one of each template show up in Project Gallery.

These values in File Locations are all stored in the object
Options.DefaultFilePath.

Curiously, when I wrote and ran a 3 line VBA macro to re-set the Workgroup
Templates variable back to null (""), the value that got inserted was the
base folder where Word is (/Applications/Microsoft Office X). I tried other
values like my $HOME folder (/users/mansky) and root folder, as well as null.
No other value would work. Couldn't re-set to null via a VB macro, and when I
tried $HOME (for example), Word hung completely up when I tried to bring up
the Project Gallery. Had to Force Quit the Word app.

I even tried deleting the Word Settings file in
$HOME/Library/Preferences/Microsoft to no effect. After deletion, the
WorkgroupTemplates value was still the base folder where Work lives.

Seems like the only way to get null back as the value for
WorkgroupTemplates (or any other File Location that has been once defined) is
to run the RemoveOffice script and re-install Office. :(


Do you know any other way to re-set WorkgroupTemplates to null once it's
been defined?


Here's the snippet of VB code I used:

If (Len(Options.DefaultFilePath(Path:=wdWorkgroupTemplatesPath)) > 0) Then
Options.DefaultFilePath(Path:=wdWorkgroupTemplatesPath) = ""
End If


Ed

--
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:[email protected]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top