+ Reply to Thread
Results 1 to 8 of 8

Error:Wordeditor runtime error 287

  1. #1
    Registered User
    Join Date
    04-10-2020
    Location
    India
    MS-Off Ver
    MS Office 365
    Posts
    6

    Error:Wordeditor runtime error 287

    I have a macro code which helps to split the data and and draft the mail in outlook..unfortunately im getting error message in " Set wEditor = vInspector.WordEditor" in this part ..Can someone look into this ?

    This macro contains 3 module. For reference below is the one module which helps to draft the mail. There is something wrong in wordeditor part as am getting error as runtime error 287 . Is there any other way to paste the range as picture ? Appreciate your help.


    Please Login or Register  to view this content.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Error:Wordeditor runtime error 287

    This code worked for me after I took out the parts referring to your specific Excel file. Please attach your file so we can do a proper test. See yellow banner at the top of the page.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    04-10-2020
    Location
    India
    MS-Off Ver
    MS Office 365
    Posts
    6

    Re: Error:Wordeditor runtime error 287

    Thanks 6StringJazzer ..

    Please find the attached sample macro file for your reference. In this file , i have 3 modules . This macro is for splitting data and send mail to persons(splitted file) accordingly.

    so here, in this code we need to change the path first then run it..

    let me know if you have any queries. Appreciate your quick support.
    Attached Files Attached Files

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Error:Wordeditor runtime error 287

    I ran this successfully after changing the path. I'm sorry but I cannot reproduce the error.

    I have posted a link to your thread to an area to attract help from other experts.
    Last edited by 6StringJazzer; 04-12-2020 at 12:01 PM.

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Error:Wordeditor runtime error 287

    Hi sarbashpk and welcome to the forum,

    Looking at https://docs.microsoft.com/en-us/off...tor.wordeditor

    Can you test your code to see if "IsWordMail" returns True? Also look at the remarks below that line to insure you have the correct Outlook type defined.

    I have no idea if the above will help but is very specific of what the dll is looking for.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  6. #6
    Registered User
    Join Date
    04-10-2020
    Location
    India
    MS-Off Ver
    MS Office 365
    Posts
    6

    Re: Error:Wordeditor runtime error 287

    Thanks for your reply.
    How can i check "IsWordMail" returns True?

  7. #7
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Error:Wordeditor runtime error 287

    Hi,

    When your error happens and you get to debug, use the immediate window and DebugPrint IsWordMail. Perhaps it is GoogleMail or something other that what is required and that might be causing the problem??

  8. #8
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Error:Wordeditor runtime error 287

    I'm sorry but I can't reproduce the problem either. All I can do is search the net for the error message like you are doing. You need to try different things to fix your own code.

+ 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. VBA error: runtime error 1004 : Method range of object - 'Global' failed.
    By Afjio12 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2019, 04:37 AM
  2. [SOLVED] Mac throwing error - Runtime Error 429 - ActiveX Component Can't Create Object
    By harman83 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 11-28-2018, 11:04 PM
  3. Runtime error '1004': Paste special method of range class error.
    By Daryl Zer0 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-05-2014, 01:44 AM
  4. [SOLVED] VBA Error: Runtime Error 1004: AutoFilter method of Range class failed
    By jl22stac in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-03-2013, 07:27 PM
  5. [SOLVED] Range error in code, runs alone but not inside my full program, giving runtime error 1004
    By charizzardd in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-23-2012, 03:34 PM
  6. runtime error 3265 error in a VBA Query to pull info from ERP Database
    By NBVC in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 05-12-2010, 03:59 PM
  7. Excel xmlHTTP object error message - system/runtime error
    By Porky2007 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-23-2007, 09:36 AM

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