+ Reply to Thread
Results 1 to 6 of 6

range.formula

  1. #1
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    range.formula

    Hello. Do I have to do range.formula for a formula? or Can I just write "=" and the write formula.

  2. #2
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: range.formula

    You don't "have" to use .Formula, just like you don't have to use .Value, even though it's good practice.

    For example, if I have 1 in A1, and 2 in A2, the following code would show 3 in A3:

    Please Login or Register  to view this content.

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

    Re: range.formula

    It's very bad practice to omit the property. Just recently on the forum someone got bit trying to insert an R1C1 formula using the (default) Value property -- which will work as long as the formula is unambiguously R1C1:

    Please Login or Register  to view this content.
    Unfortunately, if it can be interpreted as A1, it will be (and it was):

    Please Login or Register  to view this content.
    Relying on default properties, or using the wrong property, are hallmarks of an amateur. You don't wanna be that.
    Last edited by shg; 05-04-2015 at 03:56 PM.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,053

    Re: range.formula

    Words to live by, shg, thanks
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

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

    Re: range.formula

    WTY, Ford

  6. #6
    Valued Forum Contributor
    Join Date
    08-22-2011
    Location
    Auckland
    MS-Off Ver
    Excel 2019
    Posts
    716

    Re: range.formula

    To hard to understand, that's the main reason I don't use R1C1. I can work it out if I have to, but why bother

+ 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. Replies: 1
    Last Post: 03-02-2015, 11:18 AM
  2. Replies: 1
    Last Post: 11-07-2014, 01:42 PM
  3. Replies: 2
    Last Post: 09-01-2014, 07:59 AM
  4. Replies: 1
    Last Post: 09-04-2013, 07:23 AM
  5. Replies: 1
    Last Post: 06-17-2006, 09:10 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