Runtime Error 5281

  • Thread starter susiecc via OfficeKB.com
  • Start date
S

susiecc via OfficeKB.com

I'm getting a randome Runtime Error #5281 when I run a macro that creates a
paragraph style in a document. The error says something like the style I'm
trying to create is based on too many styles.

The funny thing about this is that if I quit out of Word and load the macro
again, it doesn't necessarily happen.

I've created 120 style macros. When a user activates a User Form through a
command bar, a selection of buttons are available to apply style to text. You
highlight the text and then click a button. It checks to see whether the
style is already created and if it isn't it creates the style, then applies
it to the selected text.

It was very odd. It was working fine yesterday. Then, when I created a few
more style macros, it suddenly started giving me the error. After closing and
opening the project template, it then allowed me to cycle through all the
macros with no error.

I don't know what is going on. I couldn't even find the error when I checked
with Microsoft.

Help

sue
 
M

merjet

You'd likely get a better response at a newsgroup for Word macros,
e.g.:
microsoft.public.word.vba.general
microsoft.public.word.word6-7macros

Merjet
 

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