Results 1 to 4 of 4
  1. #1
    5 Star Lounger
    Join Date
    Mar 2001
    Posts
    989
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Simple cllass module example (Word 2000)

    Does someone have a simple of example of the use of Class Modules?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Simple cllass module example (Word 2000)

    See Class Modules > A simple example.

    <post#=505,867>post 505,867</post: > contains an example of using a class module to create an interface for a Windows API function.

  3. #3
    Silver Lounger
    Join Date
    Mar 2001
    Location
    Springfield, Ohio, USA
    Posts
    2,136
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Simple cllass module example (Word 2000)

    Here's a couple of examples using Word: http://wordtips.vitalnews.com/Pages/T0876_...es_in_Word.html and http://msdn.microsoft.com/library/default....c_wdappevnt.asp. Both of these examples mearly use class modules to get at Word events. I'm hard-pressed to find a a more "classical" use of a class in Word. You can probably find some more examples by Googling for "Microsoft Word" "class module", but skip the first ten pages: I've already looked at them. If you have an idea for a Word class, we can probably get you started. HTH --Sam
    <font face="Comic Sans MS">Sam Barrett, CACI </font face=comic>
    <small>And the things that you have heard... commit these to faithful men who will be able to teach others also. 2 Timothy 2:2</small>

  4. #4
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    5,016
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Simple cllass module example (Word 2000)

    Start here: Object Oriented Programming in Visual Basic 6 then proceed through the next 60+ pages. <img src=/S/grin.gif border=0 alt=grin width=15 height=15> This is (IMHO) a really good reference on VB classes. Well worth "leaching" and saving to HD or CD using some sort of "site grabber" program. It begins with the simple and progresses through to some quite clever designs.

    Alan

Posting Permissions

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