+ Reply to Thread
Results 1 to 2 of 2

Thread: Pasting several excel ranges into Word - Format Problem

  1. #1
    Valued Forum Contributor mccrimmon's Avatar
    Join Date
    02-19-2004
    Location
    Scotland
    MS-Off Ver
    2003
    Posts
    245

    Pasting several excel ranges into Word - Format Problem

    Hello,

    Im wondering if anyone has come across this problem before.

    Im currently in the process of debugging a procedure that runs through a loop copying multiple ranges from excel and pastes them into Word.

    The format in excel needs to be retained and using the .Paste appears to work fine pasting the table as HTML as expected, however, after a certain number of table inserts the formatting reverts to RTF for no apparent reason (calls the exact same paste procedure each time). Even setting the word data type to HTML and .PasteExcelTable still results in the RTF table.

    Secondly, does anyone know why the pasting of a large table (900 rows of excel data) takes over 5 minutes to paste yet if its split into two it takes no time at all or upto approx 700 rows is also instant. I have adjusted numerous settings including switching to normal layout and removing repagination aswell as all grammar and spell checking.

    Im using Word and Excel 2003.

    Thanks

    McCrimmon
    McCrimmon

  2. #2
    Forum Guru snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,151

    Re: Pasting several excel ranges into Word - Format Problem

    Why don't you use Word's builtin facilities to perform these tasks ?

    Sub snb()
      activedocument.content.InsertFile "E:\OF\adressen 001.xls", "A1:G20"
    End Sub



+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.2.0