Macro errors after installing Q822036

M

Matt Reed

Am I the only one who had macros fail after installing the latest security
patch. 822036

More Details:
Fully patched WinXP and OfficeXP.
Running macros in Word that look for a footer on the last page of a document
as in Q 209220.
If the footer is found it is removed.
All of a sudden I have two errors.

1. I get a run-time error 4605 saying "This command is not available."
'ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument'

OR

2. The macro finishes, but I can not switch "views" by using the four little
view buttons on the Lower Left hand corner of the Word window, these are the
"Normal view, Web Layout view, Print Layout view, Outline view".
Once I switch from Word to another program then switch back into Word these
buttons are working again.

Anybody else see any problems with the new pacthes.

Matt
 
W

Word Heretic

G'day "Matt Reed" <[email protected]>,

1. That is the slowest and worst way to address H&Fs. Use the
Document.StoryRanges() [.Sections.Headers|Footers] objects.

2. Do you do an App.ScreenRefresh?



Matt Reed said:
Am I the only one who had macros fail after installing the latest security
patch. 822036

More Details:
Fully patched WinXP and OfficeXP.
Running macros in Word that look for a footer on the last page of a document
as in Q 209220.
If the footer is found it is removed.
All of a sudden I have two errors.

1. I get a run-time error 4605 saying "This command is not available."
'ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument'

OR

2. The macro finishes, but I can not switch "views" by using the four little
view buttons on the Lower Left hand corner of the Word window, these are the
"Normal view, Web Layout view, Print Layout view, Outline view".
Once I switch from Word to another program then switch back into Word these
buttons are working again.

Anybody else see any problems with the new pacthes.

Matt

Steve Hudson

Word Heretic, Sydney, Australia
Tricky stuff with Word or words for you.
wordheretic.com

If my answers r 2 terse, ask again or hassle an MVP,
at least they get recognition for it then.
Lengthy replies offlist require payment.
 

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