Results 1 to 2 of 2

Thread: VB.NET 2010 Find / replace issue in MS-Word

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2013
    Posts
    7

    VB.NET 2010 Find / replace issue in MS-Word

    Hello,

    We wrote some code to take data from a VB.NET form and replace it in ceratin spots in an MS-Word document.

    This code works fine.

    However, we ran into an issue.

    There are lines in the Word document before the replacement text. When we perform the replace, the lines get pushed over to the right thus messing up the format of the document.

    We are using MyStoryRange.Find to do the find / replace.

    We tried to use overtype mode but it doesn't seem to work.

    Any help / advice would be appreciated.

    Thank you!
    pxmnh316

  2. #2
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    Re: VB.NET 2010 Find / replace issue in MS-Word

    Perhaps you could provide us with a before and after screenshot? Your use of the word 'lines' is somewhat ambiguous.
    As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"

    Reviews: "dunfiddlin likes his DataTables" - jmcilhinney

    Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!

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