+ Reply to Thread
Results 1 to 4 of 4

Nested Relative references in VBA - Errors for what should be easy

  1. #1
    Registered User
    Join Date
    02-08-2016
    Location
    Seattle, WA
    MS-Off Ver
    2013
    Posts
    2

    Nested Relative references in VBA - Errors for what should be easy

    I am trying to get this to work:
    Please Login or Register  to view this content.
    but get a Run-time error '1004': Application-defined or object-defined error

    I do not understand as the relative concatenate works, and the vlookup with static references work, but when combining them I get this error...

    Concatenate with relative references that works:
    Please Login or Register  to view this content.
    vlookup with static references that works:
    Please Login or Register  to view this content.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Nested Relative references in VBA - Errors for what should be easy

    You should use the Formula property or the FormulaR1C1 property, and then use a consistent reference style, not a combination of R1C1 and A1 references.
    Entia non sunt multiplicanda sine necessitate

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

    Re: Nested Relative references in VBA - Errors for what should be easy

    Try this.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  4. #4
    Registered User
    Join Date
    02-08-2016
    Location
    Seattle, WA
    MS-Off Ver
    2013
    Posts
    2

    Re: Nested Relative references in VBA - Errors for what should be easy

    Thank you guys, that worked...consistency (i should have known).

+ 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. How to for converting absolute references to relative references in formulas
    By edspyhill01 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-11-2014, 02:09 AM
  2. Relative References?
    By PleaseHelpMe123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-18-2013, 09:39 AM
  3. Excel 2007 : Relative References
    By SDHofmann in forum Excel General
    Replies: 9
    Last Post: 08-20-2011, 12:33 PM
  4. Relative references
    By GARY in forum Excel General
    Replies: 1
    Last Post: 06-17-2006, 01:31 AM
  5. Relative references
    By gcotterl in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-17-2006, 12:25 AM
  6. Relative references
    By GARY in forum Excel General
    Replies: 7
    Last Post: 06-16-2006, 05:15 PM
  7. [SOLVED] Relative references
    By GARY in forum Excel General
    Replies: 1
    Last Post: 06-16-2006, 04:23 PM
  8. [SOLVED] Should Be Easy - Relative Macros
    By Andibevan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-16-2005, 11:06 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