Consulting

Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 21 to 40 of 44

Thread: Format Custom Table of Contents

  1. #21
    Administrator
    VP-Knowledge Base
    VBAX Guru MOS MASTER's Avatar
    Joined
    Apr 2005
    Location
    Breda, The Netherlands
    Posts
    3,281
    Location
    Quote Originally Posted by Killian
    I can't imagine anyone arguing with that.
    Me neither...
    _________
    Groetjes,

    Joost Verdaasdonk
    M.O.S. Master

    Mark your thread solved, when it has been, by hitting the Thread Tools dropdown at the top of the thread.
    (I don't answer questions asked through E-mail or PM's)

  2. #22
    VBAX Wizard
    Joined
    May 2004
    Posts
    6,713
    Location
    Ah, actually, am I have another stupid day? I am not thinking anyone IS arguing. Wait....well...I guess I am.

    Joost, technically speaking, and since this IS a technical forum to an extent, the original post asked about customizing the ToC. It did NOT ask about customizing the existing ToC styles - which is what your code does.

    True, modifying the existing ToC styles modifies the ToC when those styles are used to generate a ToC. However, that is a result. The core point is that, as stated, ToC are bound to a style, and........wait for it....it is general good practice that if you need a different format for text, you make a different style.

    This is especially true IMHO when you using code. Modifying styles dynamically can be done for sure, but frankly, I do not use it that way. I use the styles property more as a searching tool.

    Also, changing the existing ToC styles affects things globally. Say you change the ToC, and your code would have done it to normal.dot. Any other documents that are opened, and the ToC refreshed (because you add another chunk of text say). Your code will change that document. This may(or it may not!) be what is required.

    So, IMHO the post should be answered - as you did - it depends.

    GOOD MORNING!

  3. #23
    Administrator
    VP-Knowledge Base
    VBAX Guru MOS MASTER's Avatar
    Joined
    Apr 2005
    Location
    Breda, The Netherlands
    Posts
    3,281
    Location
    Hahhaa,

    Well Gerry it's evening over here...

    Have you tried my code?
    You talk about changing things globally? No not really.
    I'm changing the TOC styles for that document and not the Mama (Normal)....

    So please try my code and see if it changes your Normal.dot...
    _________
    Groetjes,

    Joost Verdaasdonk
    M.O.S. Master

    Mark your thread solved, when it has been, by hitting the Thread Tools dropdown at the top of the thread.
    (I don't answer questions asked through E-mail or PM's)

  4. #24
    VBAX Wizard
    Joined
    May 2004
    Posts
    6,713
    Location
    I am signing off. I am clearly of no use at all today. Stupid day, stupid day....me, me, me..having stupid day.

  5. #25
    VBAX Mentor sheeeng's Avatar
    Joined
    May 2005
    Location
    Kuala Lumpur
    Posts
    392
    Location
    Quote Originally Posted by MOS MASTER
    Hi Gerry,

    As usual we are not in disagreement!

    My post was the exact answer to the original post. (Got no feedback if it worked however..it does here)

    I also said before this shouldn't be done by code but with a proper templates with styles. (Or modify existing TOC styles)

    So...No we agree very much...but Sheeeng wanted a code example so he got one...
    Please don't argue...I hope my started thread here is not to tear down this forum...

    On the codes, pls give me some time to try it out. I'm kinda busy this week on work.

    Hope everyone here can help each other in VBA.

    Good day to all.

  6. #26
    Administrator
    VP-Knowledge Base
    VBAX Guru MOS MASTER's Avatar
    Joined
    Apr 2005
    Location
    Breda, The Netherlands
    Posts
    3,281
    Location
    Hi Sheeeng,

    No worries, AFAIK Gerry & I don't argue!

    For me this is called a discussion between two Word lovers sharing knowledge.

    My main reasson for posting on forums is to discuss my favorite app with other experts and to share and add to the diversity of sollutions. (Helping others in the process is a benefit not the main purpose)

    Perhaps Gerry has a different point of view, but he knows I have a very high opinion of him!

    Later..
    _________
    Groetjes,

    Joost Verdaasdonk
    M.O.S. Master

    Mark your thread solved, when it has been, by hitting the Thread Tools dropdown at the top of the thread.
    (I don't answer questions asked through E-mail or PM's)

  7. #27
    VBAX Mentor sheeeng's Avatar
    Joined
    May 2005
    Location
    Kuala Lumpur
    Posts
    392
    Location
    Quote Originally Posted by MOS MASTER
    Ok no problem.

    But you should better ask specific problems cause the answers to those are possible.

    There is a lot of documentation available on the Inet but little of it is general purpose. (In VBA little is general purpose)

    The Word object model is difficult so you need to address each specic problem as its own normally.

    So if you have a specific problem I'm there to assist!
    Is Inet = Internet? I wondered that for long till now....

  8. #28
    Administrator
    VP-Knowledge Base
    VBAX Guru MOS MASTER's Avatar
    Joined
    Apr 2005
    Location
    Breda, The Netherlands
    Posts
    3,281
    Location
    Quote Originally Posted by sheeeng
    Is Inet = Internet? I wondered that for long till now....
    Yeps..I always call it Inet others wil call it .NET or other terms but indeed I mean the World Wide Web.
    _________
    Groetjes,

    Joost Verdaasdonk
    M.O.S. Master

    Mark your thread solved, when it has been, by hitting the Thread Tools dropdown at the top of the thread.
    (I don't answer questions asked through E-mail or PM's)

  9. #29
    VBAX Wizard
    Joined
    May 2004
    Posts
    6,713
    Location
    Joost and I have a very good relationship. We are definitely not arguing. Or if we were, we would take it off-forum and communicate directly. Which we do. I enjoy his banter immensely, and respect his knowedge hugely. He catches my errors rather nicely, and it is a bad coder that does not appreciate error being caught. Joost keeps me humble. That being said.....

    Inet = World Wide Web?

    Bah. Nonsense! Pooooohie! There was a viable Internet years before the World Wide Web existed. You young people....


  10. #30
    Administrator
    VP-Knowledge Base
    VBAX Guru MOS MASTER's Avatar
    Joined
    Apr 2005
    Location
    Breda, The Netherlands
    Posts
    3,281
    Location
    Hi Gerry,

    Glad where on the same page and you keep me humble as well!....That being said...

    Blah, blah blah..Yes us young people have not been on the Inet for long and as long as I can remember the Inet for me is the ?WWW? .... I was probably still in diapers when you made your first surf! (On your viable .Net).....

    Tada...
    _________
    Groetjes,

    Joost Verdaasdonk
    M.O.S. Master

    Mark your thread solved, when it has been, by hitting the Thread Tools dropdown at the top of the thread.
    (I don't answer questions asked through E-mail or PM's)

  11. #31
    VBAX Mentor sheeeng's Avatar
    Joined
    May 2005
    Location
    Kuala Lumpur
    Posts
    392
    Location
    Quote Originally Posted by fumei
    Joost and I have a very good relationship. We are definitely not arguing. Or if we were, we would take it off-forum and communicate directly. Which we do. I enjoy his banter immensely, and respect his knowedge hugely. He catches my errors rather nicely, and it is a bad coder that does not appreciate error being caught. Joost keeps me humble. That being said.....

    Inet = World Wide Web?

    Bah. Nonsense! Pooooohie! There was a viable Internet years before the World Wide Web existed. You young people....

    Thx for informing me...
    I'm in my diapers at that time...

  12. #32
    Administrator
    VP-Knowledge Base
    VBAX Guru MOS MASTER's Avatar
    Joined
    Apr 2005
    Location
    Breda, The Netherlands
    Posts
    3,281
    Location
    Quote Originally Posted by sheeeng
    Thx for informing me...
    I'm in my diapers at that time...
    Me too...
    _________
    Groetjes,

    Joost Verdaasdonk
    M.O.S. Master

    Mark your thread solved, when it has been, by hitting the Thread Tools dropdown at the top of the thread.
    (I don't answer questions asked through E-mail or PM's)

  13. #33
    Just A Dude VBAX Tutor Scottie P's Avatar
    Joined
    May 2004
    Location
    Remote from 18901 USA
    Posts
    263
    Location
    Gerry is one of us from the 'handset cradle-modem' days...
    Life is Visual: Presence is Perception...
    How we see the world is how we respond to it. ~* Peace *~

  14. #34
    Administrator
    VP-Knowledge Base
    VBAX Guru MOS MASTER's Avatar
    Joined
    Apr 2005
    Location
    Breda, The Netherlands
    Posts
    3,281
    Location
    Quote Originally Posted by Scott
    Gerry is one of us from the 'handset cradle-modem' days...
    Ah ok now I remember seeing one of those in the museum.

    Wasn't it a great black box with big flashing transistors? (didn't you have to feed those with punch cards??)
    _________
    Groetjes,

    Joost Verdaasdonk
    M.O.S. Master

    Mark your thread solved, when it has been, by hitting the Thread Tools dropdown at the top of the thread.
    (I don't answer questions asked through E-mail or PM's)

  15. #35
    Just A Dude VBAX Tutor Scottie P's Avatar
    Joined
    May 2004
    Location
    Remote from 18901 USA
    Posts
    263
    Location
    The cradle I remember was a flesh-tone colour - similar to that of the default userform background color - in the shape of a tissue box (and nearly the same size!). A big red light let you know that the modem was engaged/conected. The handset of a telephone set into the cradle.

    Sometimes it took 20 minutes of dialing to get connected; other times it was the first dial that hooked up. It was difficult to know whether you had a connection because if the modem line was open (but not connected) that big red light stayed lit anyway. LOL!
    Yes, cards. It was always difficult when they were not in proper order. We used to save them in a shoe box with dividers fashioned from other pieces of cardboard or white index (recipe) cards.
    It was cutting edge technology! I remember learning my first Basic program - coin flip - the probability of heads or tails per number of flips. I also remember other, more complicated programs for calculation and missing a line...so you would have to go back and try to find the missing numeric designate - no Error #s or Msgboxes then! LOL!

    It was an interesting thing though...then the little Apple Computers came - no one could believe that they were capable of even more functionality than the those giant CPUs that we were tapping into at the time. I cannot remember the modem type for those machines nor when I first saw a desktop modem, with a connection that only required a phone line...and no more handset...probably within the same year or 2 as those little Apple machines.

    **EDIT**

    I found an image of one - this one is slightly more modern than what we had originally: modem image The image is a bit small but I think you can make out the details.
    Life is Visual: Presence is Perception...
    How we see the world is how we respond to it. ~* Peace *~

  16. #36
    Administrator
    VP-Knowledge Base
    VBAX Guru MOS MASTER's Avatar
    Joined
    Apr 2005
    Location
    Breda, The Netherlands
    Posts
    3,281
    Location
    Quote Originally Posted by Scott
    I found an image of one - this one is slightly more modern than what we had originally: modem image The image is a bit small but I think you can make out the details.
    Yes for sure that's the one from the museum. (Never had the pleasure of operating one)
    _________
    Groetjes,

    Joost Verdaasdonk
    M.O.S. Master

    Mark your thread solved, when it has been, by hitting the Thread Tools dropdown at the top of the thread.
    (I don't answer questions asked through E-mail or PM's)

  17. #37
    VBAX Wizard
    Joined
    May 2004
    Posts
    6,713
    Location
    Wow Scott...where did you find that? I remember punch cards all too well.

    Listen you youngin's, back in the dark days of DOS (and pre 4.0, the evil spawn laughably an OS) we used to build PC's, and I mean actually put circuit chips on the motherboard, adding power supplies, cabling...BUILD them, blindfolded...just for fun. Putting them together by FEEL. In the dark. This was what we did in the spare time we had running "real" computers. Hulking mainframes.

    Scott sounds old enough to remember the joys of Archie and Veronica.

    Hate to tell you this, but unless things are changed (which they may have...I am getting senile), your mail is STILL not using www. Your mail, is going SMTP, its own protocol and is NOT on the World Wide Web - technically speaking, although it IS on the Internet. Why?

    Because the Internet is NOT the world wide web. The Internet is the routing...hmmm, mechanism is not quite the word. However, call it a mechanism.

    Saying the Internet is the world wide web, is the same as calling your dashboard dials and lights - the car. Well, it is not the car, it is the graphical interface (and only one of) you have with the car.

    One of the concerns I have actually, is that the backbone, the guts of this thing - the Internet - is disappearing from consciousness. Most people now think as you do Joost. There it is, the Web. That is it, and getting bigger and better.

    Back then, we had some real say and control of how things worked. Now, we have nothing except prettier pictures and Flash.

    Oh well, things were doomed when TCP/IP became standard. But...at least we can enjoy the show. Bread and circuses.

  18. #38
    Just A Dude VBAX Tutor Scottie P's Avatar
    Joined
    May 2004
    Location
    Remote from 18901 USA
    Posts
    263
    Location
    Gerry, my first build was PC based pair of 8088s with a 640 KB harddrive <- this is not a typo! 640 kb was really something to have! We had those 'place mat' sized 5.25" floppy discs (that I am sure MOS MASTER also saw in the museum) and Gerry is not joking about taking up a soldering iron and going to work on a motherboard - not by any stretch. Radio Shack was abundant in 'off the shelf' components in those days, so everyone was doing mods, hardwiring external modems, and attempting to gang those 8088 chips. All of this was before 286 series.

    When 286 hit the streets we were in heaven...but 386 came quickly after. Most home users with a little electronics know-how were modding there 286 systems to take the 386 series.

    Oh, and RAM? LOL! 8 Meg was screamin - and very expensive (if you had slots for it).

    **EDIT**

    Oh and CGA monitors!
    Life is Visual: Presence is Perception...
    How we see the world is how we respond to it. ~* Peace *~

  19. #39
    VBAX Wizard
    Joined
    May 2004
    Posts
    6,713
    Location
    I bought a 286 when they first came out. I think I was the first in town. I was a rooster... strutting...it had 16 Mb of RAM!

    We had that thing stripped to parts, and rebuilt again, the first night. Just HAD TO see that CPU!

    Now I look in our AIX box - 128 (yes, 128) 3.0 GHz Xeon processors...shrug my shoulders and yawn. However, if they would just let me run POVRay on it......then I would be a kid again. Can you imagine?

  20. #40
    VBAX Wizard
    Joined
    May 2004
    Posts
    6,713
    Location
    Oh (roll of the eyes....) CGA. Hey Scott, explain CGA to these guys.

    You know, I still have a copy of the original Sokoban...in living CGA! And a VAX compile (ported to DOS) of Empire - not that Microsoft thingie people. The original Empire that actually shut down the Berkeley computer because nerds were playing it so much. The one we were playing before Bill Gates touched a computer.

    Man, I need a nap.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •