Run Time Error

G

Greg

Hi,

I am in the middle of a move. I don't have my personal
computer available and I am trying to set up my computer
at my new job.

I am having a problem with a very simple macro that I run
on my personal computer.

Sub AutoNew()
ActiveWindow.View.Type = wdPrintView
CommandBars("Reviewing").Visible = False
End Sub

With this macro loaded on the computer I am using at work
I get the following message:

Run-time error '91'
Object variable or With block variable not set.
I stepped through the macro and the error is generated on
the second line.

Can anyone point me to a solution. Thank you.
 

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