Results 1 to 5 of 5
  1. #1
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    size of the Immediate Window buffer

    Word97SR2: Is there anyway to change the size of the Immediate Window buffer?

    I can fit about 200 lines in mine, it seems

    <pre>Sub SizeImmediate()

    Dim i As Integer
    For i = 1 To 201
    Debug.Print i
    Next i

    End Sub
    </pre>


    The WIDTH of the line seems to make little difference:

    <pre>Sub SizeImmediate()

    Dim i As Integer
    For i = 1 To 201
    Debug.Print i & " and a whole lot of other stuff"
    Next i

    End Sub
    </pre>


  2. #2
    Super Moderator
    Join Date
    Dec 2000
    Location
    New York, NY
    Posts
    2,970
    Thanks
    3
    Thanked 29 Times in 27 Posts

    Re: size of the Immediate Window buffer

    <P ID="edit"><FONT SIZE=-1>Edited by Gary Frieder on 01/04/25 04:52.</FONT></P>What happens when you exceed the buffer? [gotta watch out for those typos - they'll kill ya <img src=/S/grin.gif border=0 alt=grin width=15 height=15>

    I've just tried your code (Word 97SR2), but with 2001 rather than 201, and it ran merrily along with nary a pause for breath.

    Could this be a function of available memory? (wouldn't have thought...)

  3. #3
    Platinum Lounger
    Join Date
    Dec 2000
    Location
    Queanbeyan, New South Wales, Australia
    Posts
    3,730
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: size of the Immediate Window buffer

    Gary,

    Before you changed that post, you referred to an innocent word being zapped.

    What was the innocent word <img src=/S/smile.gif border=0 alt=smile width=15 height=15>?

    It will run to 2001 occurrences, but if you scroll back, you'll only be able to see about 200. On Chris's example, the value "3" was the earliest I could see.
    Subway Belconnen- home of the Signboard to make you smile. Get (almost) daily updates- follow SubwayBelconnen on Twitter.

  4. #4
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: size of the Immediate Window buffer

    >It will run to 2001 occurrences, but if you scroll back, you'll only be able to see about 200.


    Correct. This is in your Word97, right?

    My first test was ambitious. I said "hey! It's integer, right!?", set it to 32,000 and made a cup of tea. When I came back it was at 10,000 or something, so I axed that and chopped it down.

    I've gone back to using "Documents.Add" with "Selection.Typtext" for the important stuff. A limit of 200 seems petty.


    Of course, if they gave me unlimited Immediate Buffer size I'd be back tomorrow complaining about Word97VBE only having enough space for strings of short length .....

  5. #5
    Super Moderator
    Join Date
    Dec 2000
    Location
    New York, NY
    Posts
    2,970
    Thanks
    3
    Thanked 29 Times in 27 Posts

    Re: size of the Immediate Window buffer

    Thanks Geoff,

    I've just tried this again on Word 2000 at home and yes, same limitation.

    The innocent word is if you type "buffer" but accidentally type the key to the right of "f" twice. (Actually I typed "buffer" corrrectly and then added "I almost typed bu--er" - this was for Chris' benefit as he's fond of things like um, not worth repeating. <img src=/S/laugh.gif border=0 alt=laugh width=15 height=15>)
    The word in question is fairly innocent in the US but I guess has more serious connotations elsewhere.

    Hey Chris, what happens if you attach search tags to zapped words? <img src=/S/thinks.gif border=0 alt=thinks width=15 height=15>

Posting Permissions

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