+ Reply to Thread
Results 1 to 4 of 4

Issue Pasting Formula Using VBA

  1. #1
    Forum Contributor
    Join Date
    08-04-2011
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2007
    Posts
    109

    Issue Pasting Formula Using VBA

    I am trying to paste a formula into a cell using the following VBA:

    Please Login or Register  to view this content.
    The formula is then copied down. Once the macro is complete the cells show a "#NAME?" error. Closer inspection of the cell contents reveals the the formula is actually:

    Please Login or Register  to view this content.
    Perens has been placed around one of the range references. I am thinking this may have to do with the colon. Any help in being able to represent the formula in VBA without adding the perens would be appreciated.
    Last edited by Dionysos; 11-15-2012 at 10:10 AM.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: Issue Pasting Formula Using VBA

    That is not a R1C1 style formula...

    Change:
    Please Login or Register  to view this content.
    To:
    Please Login or Register  to view this content.
    HTH
    Regards, Jeff

  3. #3
    Forum Contributor
    Join Date
    08-04-2011
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2007
    Posts
    109

    Re: Issue Pasting Formula Using VBA

    Yes! That fixed the problem. Thank you.

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: Issue Pasting Formula Using VBA

    You are very welcome and thanks for the feedback.

+ Reply to Thread

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