Results 1 to 4 of 4

Thread: Speed up process?

  1. #1

    Thread Starter
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994

    Speed up process?

    Is it possible to speed up a process I'm doing in word? I've written a function that loads a file line by line, creates a new row in my table, and inserts data from the file accordingly - this works fine, but I have 2000 entries, and since Word shows everything(tables being made, etc.) it's slower for every page of rows that's added, so when it comes to a 1000 it's reeaalllyyy slow - can I hide it in any way ?

    Cheers!
    "Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
    - Zack de la Rocha


    Hear me roar.

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974
    Your process could be made faster (by loading the whole file at once for example), if you want help there let us know.

    For the main issue just do this:

    Application.ScreenUpdating = False


    and when you finish (or have an error, or show a message to the user) you must do this:

    Application.ScreenUpdating = True

    (otherwise you wont see anything in Word even if you close & re-open it )

  3. #3

    Thread Starter
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994
    Originally posted by si_the_geek
    Your process could be made faster (by loading the whole file at once for example), if you want help there let us know.

    For the main issue just do this:

    Application.ScreenUpdating = False


    and when you finish (or have an error, or show a message to the user) you must do this:

    Application.ScreenUpdating = True

    (otherwise you wont see anything in Word even if you close & re-open it )
    Ahh, k, Thanks ! - And yeah, I could load the file first and do a split on vbCrLf, good idea!

    Cheers!
    "Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
    - Zack de la Rocha


    Hear me roar.

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974
    Originally posted by vbNeo
    Ahh, k, Thanks ! - And yeah, I could load the file first and do a split on vbCrLf, good idea!

    Cheers!
    no worries.

Posting Permissions

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



Click Here to Expand Forum to Full Width