objTable.Style="Table Grid"

J

jerry chapman

I have a word macro that uses the folloring command: objTable.Style = "Table
Grid". I am running MSWord 2002 on windows XP. When I try to run the same
macro on my machine at work which has MSWord 2000, I get an error saying the
..Style is not defined. Is there a corresponding function in MSWord 2000? If
so what is it?
 
J

Jezebel

The code is looking for a style. The error is saying that the template
you're using doesn't have a style by that name. Go to Format > Styles and
create one, then your macro will work; or copy the template from the machine
where it works to the machine where it doesn't.
 

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