fileopen() ctrl+n problem

H

Heinz Deubler

I recently upgraded from office xp to office 2003. I have a macro that
intercepts the fileopen event which still work in office 2003 when I go to
file -> open. However when I type ctrl+n the macro does not run, all I get is
a blank new document. In office xp the ctrl+n key conbination would run the
macro.
Any ideas?

Thanks
Heinz
 
J

Jay Freedman

Hi Heinz,

The point of Suzanne's question, if it isn't obvious, is that by
default the shortcut Ctrl+N is assigned to File > New, not to File >
Open. The default shortcut for File > Open is Ctrl+O.

The only way Ctrl+N can run a macro that intercepts the File > Open
command is if the shortcut has been explicitly reassigned to the macro
(or, equivalently, to the File > Open command). This would be unusual
but not difficult.
 
H

Heinz Deubler

Suzanne, Jay
Thanks for your response. I ment File->new and not File open, my bad sorry
for the confusion.
So my problem is that when I press ctrl+n I get a new document instead of
the macro that is assigen to file->new.

Thanks
Heinz
 
K

Klaus Linke

Hallo Heinz,

Perhaps you have two "FileNew" macros? Then Word will run the built-in command instead of making a random choice between your macros.

Regards,
Klaus
 
H

Heinz Deubler

Klaus
I created a new macro with only the filenew() function and installed it on
2 differrent computer and it still doesn't work.

Heinz
 
K

Klaus Linke

Maybe it is some other problem. But still...

Macros and functions are stored in modules. Many users have more than one module in their project without being aware of it.

In the VBA Editor, search for "FileNew" and check "Current project" (Suchen in: aktuellem Projekt).

Regards,
Klaus


----- Original Message -----
From: "Heinz Deubler" <[email protected]>
Newsgroups: microsoft.public.word.application.errors
Sent: Wednesday, February 23, 2005 7:41 AM
Subject: RE: fileopen() ctrl+n problem
 

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