Thanks. I'm a tech writer---with still a lot to learn---working with a bunch of engineers. They may know Linux inside and out, but MS Word is Greek. To them a template is just a generalized Word document that keeps getting saved-as on and on.
By the way, speaking of Word this particular...
Great, thanks. I believe I can work that into another process that's had me frustrated. I discovered that I cannot create and save custom document properties either. I have a macro that creates them, saves, and closes the doc. But when I would reopen the document the new properties are no longer...
Thanks Gerry. Assigning 'headingness' to the wrong row isn't an issue in my case. My macro actually looks for the next occurance of a "tableheading" style, which only exists in the first row of each table anyway. It then does its thing and then jumps down a row.
It's become apparent to me that...
Yes Tony, even when I do it with a single document my view-percentage is not saved... if that's ALL I do. If however, I make another change to the doc, even something as lame as adding a space somewhere, then saving the doc, then removing the space again, then saving again and closing, the new...
I would like to set a directory full of Word 2003 docs to view at 100% when opened the next time around. Is this a property that can be set all by itself? I have noticed that when I just do this alone, either manually or by running the following code in a macro, the property does not 'take'...
Thanks. I knew it had to be something incredibly simple.
BTW, my first attempt to do this was by recording the steps in a macro using the drop-down menu, but that only seems to toggle the property:
Selection.Rows.HeadingFormat = wdToggle
...which isn't satisfactory since some of my tables...
... that is, to repeat on following pages.
Does anyone have the VBA statement for setting this property to "true" for the selected heading/row? Thanks.
Well I'll be...
Thanks for pointing out that should-have-been-obvious lil' detail. And thanks again to PHV for originally providing it. (This is what happens when I try to do this kind of stuff at work.)
Well, I was doing it manually because I don't know how to code it. Manually it works fine. I can type Alt+8211 and an en-dash appears in the Properties window. I can then insert a field linked to that property and the en-dash appears just fine.
What I really want to do is have a macro that...
Well... I was just doing the creating and field insertion manually, to see what would appear. If I were to code it, it would look something like this (please don't laugh):
To create the custom property and assign it the value provided above:
Dim nDash As String
nDash = "ChrW(&H2013)"...
Maybe there's more to that then meets the eye. Putting that in the "text" value field for the custom property just means that "ChrW(&H2013)" appears in the document when a field is added.
Hi again folks. I don't know if this is specifically a VBA question, though I'll be using VBA to implement it. I want to create a custom document property, say "modeNo", with the value being an en-dash. This isn't something I can just type in though. En-dash does have a unicode value, U+2013 or...
Quick follow-up: I just ran the above macro on a Word doc that has about 30 section breaks. It worked great---did everything it was supposed to and quit when it finished. Thanks for the help.
Hi Gerry. (And thanks Tony!) It doesn't really matter where in the last section. What I want is a Do-While loop that marches though each section of a doc and performs a task. It then determines if the current section is the FINAL section and if so, a flag is switched that will cause the loop to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.