+ Reply to Thread
Results 1 to 3 of 3

Copy Worksheets to Word

  1. #1
    Registered User
    Join Date
    11-05-2007
    Location
    Columbus, Ohio
    Posts
    10

    Post Copy Worksheets to Word

    I have Excel workbooks with 10-50 sheets in each and I would like to be able to save or open them in Word. Since I've upgraded to Office 2003 I no long have the option to do that via the software open options. Looking around on the 'net I found a macro that says it'll do just what I'd like but when I use it I get an error saying the User Application is not defined.

    Can someone tell me what exactly the error means and why it's stoping the macro from working?

    Here's the full macro:

    Please Login or Register  to view this content.

    Here is the line that the Debugger flags:

    Please Login or Register  to view this content.
    All help is very appreciated!!

  2. #2
    Forum Contributor
    Join Date
    03-25-2008
    MS-Off Ver
    Excel, Outlook, Word 2007/2003
    Posts
    245
    It's early binding versus late binding. You could try this :
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-05-2007
    Location
    Columbus, Ohio
    Posts
    10
    Hi Charlize! And thanks for the help. :D

    I gave this a try and received a couple runtime errors, I took out the lines that were giving me trouble, such as creating page breaks; useful but not required.

    Now I've encountered a different type of problem. In the Excel document I have some cells in Column A merged, in most of the pages this carries over with the pasting macro but about half way through it stops, is ok for one worksheet/page, and then stops again.

    Would you happen to know what causes this? I've ran the macro several times and it's consistantly wrong on the same worksheets. Is it something in my Excel worksheets, formatting, etc since it works on some pages and not others?
    Last edited by PBnJ; 03-31-2008 at 08:40 AM.

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