+ Reply to Thread
Results 1 to 3 of 3

FormulaR1C1 Error

Hybrid View

vvolis FormulaR1C1 Error 06-01-2012, 02:38 AM
vvolis Re: FormulaR1C1 Error 06-01-2012, 02:44 AM
arlu1201 Re: FormulaR1C1 Error 06-01-2012, 02:50 AM
  1. #1
    Registered User
    Join Date
    04-12-2012
    Location
    Riga
    MS-Off Ver
    Excel 2010
    Posts
    6

    Unhappy FormulaR1C1 Error

    Hi guys! I am getting run-time error 1004 on this formula:

      ActiveCell.FormulaR1C1 = _
            "=IFERROR(VLOOKUP(RC[-11]&RC[-6],[" & wrbName & "]" & SheetName & "!R6C4:R431C9,6,FALSE),"""")"
    It works without variables but refuses to work with them. Am i missing something obvious?
    Last edited by vvolis; 06-01-2012 at 02:44 AM. Reason: Solved

  2. #2
    Registered User
    Join Date
    04-12-2012
    Location
    Riga
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: FormulaR1C1 Error

    Solved it: appearantly you cant use workbook names with spaces is them. Any way to fix/go around this?

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: FormulaR1C1 Error

    Use an underscore between the names.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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