Results 1 to 5 of 5

#name error on correct formula

Threaded View

  1. #1
    Registered User
    Join Date
    07-26-2012
    Location
    dsf
    MS-Off Ver
    Excel 2010
    Posts
    6

    #name error on correct formula

    Hi everyone,

    I need some help with a question I bet most of you can answer. I've searched online for an answer but still haven't found it.

    So here is my question.
    I have VBA paste a formula into a cell, and it gives a #name error in Excel.
    If I just copy/paste the formula or just open it and press enter, it works, so the formula is correct.

    the formula is: =TEKST.SAMENVOEGEN(A11;B11;C11) (to put strings from different cells together)
    This is used in a row called lRow.
    the code I wrote is:

          
     strFmula = "=TEKST.SAMENVOEGEN" & "(" & "A" & lRow & "," & "B" & lRow & "," & "C" & lRow & ")"
    
            
    ActiveCell.Formula = strFmula
    Maybe the error lies in using the lRow-variable?

    Thanks in advance and greetings
    Last edited by morphine; 07-26-2012 at 07:44 AM.

Thread Information

Users Browsing this Thread

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

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