+ Reply to Thread
Results 1 to 2 of 2

Copy from Excel and paste to Word - Troubleshooting

  1. #1
    Registered User
    Join Date
    12-20-2019
    Location
    Tennessee, US
    MS-Off Ver
    365
    Posts
    1

    Copy from Excel and paste to Word - Troubleshooting

    Hello all,

    So I have a working vba code that takes a bunch of cell values in excel and places them in a specific word document I created. These values are being placed where I put bookmarks in the word document.

    My problem is, about 30-40% of the time I try to run the code, it freezes up and gives and error. When I debug it, it will show a random line of code that I know works to be the source of the issue. I know my code is working because it will run all the way through more than half the time with no problem. See below for my entire code and for the error messages:

    Please Login or Register  to view this content.
    Error Image.PNG
    Last edited by Pepe Le Mokko; 01-14-2020 at 11:33 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,454

    Re: Copy from Excel and paste to Word - Troubleshooting

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    I did it for you this time. Please read forum rules. Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Copy/paste from word to excel using VBA
    By MissaLissa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-20-2017, 10:46 AM
  2. Copy and paste from one word doc to another from excel
    By FPTools in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-15-2014, 01:14 AM
  3. Replies: 1
    Last Post: 01-16-2013, 05:36 AM
  4. Replies: 1
    Last Post: 10-01-2012, 11:11 PM
  5. Copy from txt, paste into word and then into excel
    By c.vaibhav in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-05-2011, 03:10 AM
  6. Troubleshooting Merge Excel to Word
    By mulix in forum Excel General
    Replies: 0
    Last Post: 07-29-2006, 04:22 PM
  7. copy excel paste to word
    By Ciara in forum Excel General
    Replies: 0
    Last Post: 05-20-2005, 05:06 AM

Tags for this Thread

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.6.0 RC 1