+ Reply to Thread
Results 1 to 7 of 7

Runtime Error - Method Value of Object Range failed

  1. #1
    Registered User
    Join Date
    09-10-2019
    Location
    Edinburgh, Scotland
    MS-Off Ver
    2010
    Posts
    3

    Runtime Error - Method Value of Object Range failed

    Hi
    I have a simple workbook with 2 worksheets.
    Sheet 1 will produce class registers. Sheet 2 is operating as a database.
    My issue is trying to populate the DATES on the class registers sheet (Sheet1)
    The dates for each term are entered on Sheet 2.
    In sheet 1, I want to populate the dates depending on the Term and the day of the class.
    This is what I have coded, but getting a runtime error.

    Please Login or Register  to view this content.
    Any help appreciated - thanks.
    Last edited by davesexcel; 09-10-2019 at 07:57 AM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: Runtime Error - Method Value of Object Range failed

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Runtime Error - Method Value of Object Range failed

    Might help if we know the specifics of the error and what line causes it.

  4. #4
    Registered User
    Join Date
    09-10-2019
    Location
    Edinburgh, Scotland
    MS-Off Ver
    2010
    Posts
    3

    Re: Runtime Error - Method Value of Object Range failed

    Hi
    And thanks for reply.
    I have attached a very simple workbook - when you open it, sheet 1 will show as I would like it to work. But if you change the day or Term from the drop down boxes, it will fail.
    NB - I have only coded dates for term 1 and term 2 at the moment - as this is a POC. Also, the dates in the real book will not flow as simply as it does in this - ie. its not consecutive weeks.

    Thanks
    Attached Files Attached Files

  5. #5
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Runtime Error - Method Value of Object Range failed

    Try adding these two lines to the beginning and end of your code.
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    09-10-2019
    Location
    Edinburgh, Scotland
    MS-Off Ver
    2010
    Posts
    3

    Re: Runtime Error - Method Value of Object Range failed

    Quote Originally Posted by dangelor View Post
    Try adding these two lines to the beginning and end of your code.
    Please Login or Register  to view this content.
    Fab ! Thanks. That seems to have worked.

  7. #7
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Runtime Error - Method Value of Object Range failed

    Glad it was helpful!

+ 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] RunTime Error 2147417848 -Method insert of object Range Failed
    By Vassen in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 07-14-2016, 06:58 AM
  2. [SOLVED] Runtime Error '1004' Method 'Range' of object '_Worksheet' failed
    By ovalstar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-20-2013, 02:15 PM
  3. [SOLVED] Runtime error 1004: Method 'Range' of object '_Worksheet' failed
    By Phil Payne in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-17-2013, 01:30 AM
  4. Runtime error .. 20028018: Method value of object range failed
    By petca059 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-11-2010, 04:40 AM
  5. 1004:runtime error method 'range' of object'_Global failed
    By trksbc in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-21-2009, 03:25 AM
  6. runtime error 1004 method range of object global failed
    By dreamz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-26-2006, 03:25 PM
  7. [SOLVED] runtime error 1004 method range of object '_global failed
    By valdesd in forum Excel General
    Replies: 2
    Last Post: 10-06-2005, 03:05 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