+ Reply to Thread
Results 1 to 3 of 3

Why is this line erroring?

  1. #1
    Registered User
    Join Date
    08-23-2012
    Location
    Cambridge, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Question Why is this line erroring?

    Hi Guys,

    I am asking VBA to repopulate certain formulae using FormulaR1C1.

    "SageSummary" is a defined worksheet

    This code populates correctly:

    Please Login or Register  to view this content.
    And was produced from this original working excel formula:

    Please Login or Register  to view this content.
    This code produces a 1004 object error:

    Please Login or Register  to view this content.
    And was produced from this original excel formula:

    Please Login or Register  to view this content.
    I can't see an issue with the code??

    Thanks for any help!

    crabby

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Why is this line erroring?

    Check the second version where the YEAR function has an incorrect bracket.

    YEAR(R6C[-3))
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    08-23-2012
    Location
    Cambridge, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Why is this line erroring?

    Thank you!

    Knew it was a simple one, just needed some fresh eyes.

    crabby

+ 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] VBA Macro erroring out with example code / document
    By Hyflex in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-25-2014, 05:21 AM
  2. If Statement Erroring at Runtime
    By Mordred in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 11-04-2011, 01:12 PM
  3. add something to m code to keep from erroring
    By daniels012 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-28-2009, 09:55 AM
  4. VBA code erroring in XL97...
    By sharpie23 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-15-2006, 03:30 PM
  5. Excel Erroring on Close
    By Denny Behnfeldt in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-21-2005, 11:06 PM

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