Results 1 to 2 of 2

Thread: ** RESOLVED ** Word acting up !!!

  1. #1

    Thread Starter
    Frenzied Member TheBionicOrange's Avatar
    Join Date
    Apr 2001
    Location
    Cardiff, UK
    Posts
    1,818

    Angry ** RESOLVED ** Word acting up !!!

    I'm accessing Word via VB.

    I'm adding rows to a table etc.

    At the end I'm moving down 2 lines (to get me uot of the table), and then sending a page break (to put me on a new page), and then building a new table etc.

    If I step thru my code in debug mode it works exactly how I want it to.

    If I just whack F5 and let it run to the end it goes nuts !!!!!

    I have tried shoving DoEvents here and there but I just end up with different results, all of which are wrong!!!!

    I bloody hate Microsoft products when they do this !

    Anyone have any ideas on how I can stop Word screwing my formatting up ?????

    Thanks in advance .....


    Steve.
    Last edited by TheBionicOrange; Apr 15th, 2003 at 05:00 AM.

  2. #2

    Thread Starter
    Frenzied Member TheBionicOrange's Avatar
    Join Date
    Apr 2001
    Location
    Cardiff, UK
    Posts
    1,818
    OK sussed it.

    It appears Word doesn't like the way I leave the table, i.e.

    VB Code:
    1. .Selection.MoveDown Unit:=wdLine, Count:=5
    2.             .Selection.InsertBreak Type:=wdPageBreak

    ........ but it IS ok with this ....

    VB Code:
    1. .Selection.EndKey Unit:=wdStory
    2.             .Selection.InsertBreak Type:=wdPageBreak



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