+ Reply to Thread
Results 1 to 5 of 5

Run-time error :5174 "Application-defined or object -defined error"

  1. #1
    Registered User
    Join Date
    02-24-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    76

    Post Run-time error :5174 "Application-defined or object -defined error"

    Hi guys,
    I need help in solving this error. My goal is to populate a word document template by values from the cells marked by their respective bookmarks from the excel sheet called "DataSheet" to template called "Tier2 Dashboards". I have written the vba code that does the following but gets "Run-time error:5174" gets to Set Wrd = CreateObject("Word.Application"). Below is the vba code that gives the error:

    Please Login or Register  to view this content.
    I would like to have some help on this issue.
    Last edited by mvneema; 03-06-2014 at 11:20 AM.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Run-time error :5174 "Application-defined or object -defined error"

    I don't think you need that line of code.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    02-24-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    76

    Re: Run-time error :5174 "Application-defined or object -defined error"

    But I need to set the variable Wrd. right?

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Run-time error :5174 "Application-defined or object -defined error"

    Try getting rid of New and using this.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    02-24-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    76

    Re: Run-time error :5174 "Application-defined or object -defined error"

    I tried doing that but I get the same error. No Idea where I need to change the code to make it work.

+ 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. [SOLVED] Error " Run-time error '1004': application defined or object defined error
    By lengwer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-11-2013, 07:26 AM
  2. Error When Implementing Code: "1004 - Application-defined or object-defined error"
    By blueblazingdemon in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-10-2013, 11:21 AM
  3. Replies: 1
    Last Post: 05-06-2013, 06:07 AM
  4. How to catch "<Application-defined or object-defined error>" in Excel 2010 VBA?
    By cjweitz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-19-2013, 11:31 PM
  5. Run-time error "1004" Application defined or object-define-error
    By josros60 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-21-2013, 01:14 PM

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