Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Runtime Error 5281

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

--
Sue Caulfield

Message posted via http://www.officekb.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 812
Default Runtime Error 5281

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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Runtime Error - Subscript out of range despite On Error statement DoctorG Excel Programming 3 July 28th 06 03:56 PM
Excel 2003 Macro Error - Runtime error 1004 Cow Excel Discussion (Misc queries) 2 June 7th 05 01:40 PM
naming tab macro error runtime error 1004 D Excel Programming 3 February 28th 05 01:32 AM
Syntax Error Runtime Error '424' Object Required sjenks183 Excel Programming 1 January 23rd 04 09:25 AM
Unknown where is the problem on the Runtime error - Automation error wellie Excel Programming 1 July 10th 03 08:12 AM


All times are GMT +1. The time now is 08:50 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"