Consulting

Page 2 of 2 FirstFirst 1 2
Results 21 to 23 of 23

Thread: Solved: Document File Size

  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 Howard Kaikow
    What are you trying to prove?
    You've already been told that a string can hold about 2 billion characters.
    Haha that's true..good one Howard, forgot about the previous bitt off this questionne...

    @Dave
    So if you use the LEN function on the text you want to load in to the string you can deside to use the Mid (Left, Right, etc..) Function if need be to pass Substrings in to other string variabels to hold the values en concenate them in the document.

    But I think you should just code you're program and come over here with the code if you run into problems!
    _________
    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 Expert Dave's Avatar
    Joined
    Mar 2005
    Posts
    863
    Location
    "You're string doesn't overflow it's you're counter witch is declared as Integer!"
    Now that is funny. Appearances can be deceiving. Some days you learn more than others. Not trying to prove anything. Just trying to prevent crashes if an overflow error occurs. This was just a feeble start and somewhat amusing I'll admit. The notion was to always have a backup copy of the string so when it overflowed you could copy the backup to Word, reset the error, set the original string to vbnullstring, then return to the routine and continue on with what you were doing like nothing happened. It needs a bit of work. However, it's been about 15 minutes since I set the above code loose on a long variable and still no message. It's hard to grasp what 2 billion characters will do for you. More than likely adequate for what I'm doing. I think I'll mark this as solved as the effort isn't worth the gain. Very much appreciate all the help. Dave

  3. #23
    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 Dave
    "You're string doesn't overflow it's you're counter witch is declared as Integer!"
    Now that is funny. Appearances can be deceiving. Some days you learn more than others.
    Very much appreciate all the help. Dave
    Hi Dave,

    You're welcome and glad you have as much fun as I have!
    _________
    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)

Posting Permissions

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