ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

Help me with MS Word styles

<< < (11/14) > >>

AndyM:
In case kfitting doesnt' answer this right off -

It's not an error.  Looks like it's simply a message telling you that your TOC doesn't use fields (a toc field), but instead must use Headers (don't ask me, I set up my tables of contents using fields).

It's just info.  Comment it out by putting a ' in front of the msgbox line ('msgbox "TOC.....).

kfitting:
As AndyM says, the messagebox is not an error, that's just showing you that the TOC does not use fields.   In your real document make sure the messagebox does not display (by commenting it out or deleting the entire line).  That was just a step I used to learn that the TOC is it's own object, not a bunch of seperate fields.

The error you gave in post 46 (the "cant find object or library") was not allowing the VBA script to run at all.  My code just pops a message box with the true or false value of the TOC UseFields property.  In other words, two seperate problems.  As long as the script runs and updates your TOC you should be fine.  

Given what I've seen of the template, I think you're using the correct code for the job.  The other scripts loop through various fields in the document... not the same thing as the TOC object.


Yeah learning things on the job is awesome cause you get paid to figure things out, but it sucks because the people above you dont want to pay you for learning!  They would rather you save time, until they learn that it takes initial time to learn how use the tools in a time-saving way.

I will say that learning VBA does pay big dividends.  Lots of tedious tasks can be automated rather quickly, once the object model is understood!

superboyac:
This was my story then, and I'm sticking with it  8):

https://www.donationcoder.com/forum/index.php?topic=5372.msg49315#msg49315
-AndyM (May 14, 2010, 09:50 PM)
--- End quote ---
You know, Andy, I read that a while back.  Now that I am discovering Word's more powerful features, I understand what you mean.  Before this, I would use Word only as a basic text editor.  All I would do is click the bold/italic buttons, change some fonts, etc.  I'm glad to see that I can do a lot of other things with it.  So, your statement in the other thread finally hits home with me.

Random question:
Let's say I wanted to put together a nicely formatted booklet.  Would I use Adobe InDesign (which I like, but don't know how to use yet), MS Word, or both?  Shouldn't InDesign be able to do all these things like managing styles, fields, etc.?

superboyac:
What is the best forum to get answers to Microsoft Word questions?  I like the tutorials shown in this thread, but a lot of what they say is for Word 2003 or older.  And while they may apply to 2007 also, i want to know for sure.  For example, the experts say to avoid using tables because of instability issues, but I wonder if that is fixed in 2007.  Also, I want to know if some of the fancier features, like Building Blocks, are ok to use, or if they are also unstable.  Thanks.

AndyM:
Before this, I would use Word only as a basic text editor.  All I would do is click the bold/italic buttons, change some fonts, etc.  I'm glad to see that I can do a lot of other things with it.
-superboyac (May 17, 2010, 12:02 PM)
--- End quote ---

I was perfectly happy running OS/2 and doing all my writing using a text editor, and had been for years.  In a matter of months I had to buy an XP computer, learn Windows, Word and Excel 2002, and produce a 75 page booklet compiled from a disparate collection of .doc, .xls, .pdf and wordperfect files, emails, and hard copy.  The booklet pages were 5.5" x 8.5" but all the copy was formatted for 8.5 x 11.  Couldn't just shrink the pages, every single one had to be reformatted.

I did it all in Word, converting Excel sheets into tables.  It was a nasty crash course, and knowing I'd have it to again the next year I put time into learning the software.  The following year went much smoother, but had I not had such a pressing need I would never have learned so much so fast.

Let's say I wanted to put together a nicely formatted booklet.  Would I use Adobe InDesign (which I like, but don't know how to use yet), MS Word, or both?  Shouldn't InDesign be able to do all these things like managing styles, fields, etc.?
-superboyac (May 17, 2010, 12:02 PM)
--- End quote ---

I know you can make a decent booklet using Word 2002, but I don't know if or how much InDesign would make that easier.  Perhaps someone familiar with both programs?

What is the best forum to get answers to Microsoft Word questions?  I like the tutorials shown in this thread, but a lot of what they say is for Word 2003 or older.  And while they may apply to 2007 also, i want to know for sure.  For example, the experts say to avoid using tables because of instability issues, but I wonder if that is fixed in 2007.  Also, I want to know if some of the fancier features, like Building Blocks, are ok to use, or if they are also unstable.  Thanks.
-superboyac (May 17, 2010, 06:12 PM)
--- End quote ---

The microsoft.public.word newsgroups are good (the excel newsgroups are better) for getting questions answered.  I find for general things I'm better off checking all the MVP and Word guru sites for articles when I'm delving into something.

Re tables, I don't know about unstable, but they can be a real pita.  Perhaps in Word 2007 it's better (I seem to remember talk of improvements here), but table styles don't work well at all.  This is different from using paragraph styles and character styles in tables, which work fine (except watch out for endpara marks in table cells, not necessary).  

What I have read is unstable is the whole Master document scheme, but I've never had a reason to find out.

I spent huge amounts of time learning this stuff (and I don't know that much but what I do know has been helpful).  I did most of it on my own time, either when I was self-employed or when I was working in an office.  No way would a boss pay me to put that kind of time in on his nickel.

I also got a broadband connection when I was learning Windows, Word, and Excel.  Boy did I learn to love Google.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version