+ Reply to Thread
Results 1 to 7 of 7

vba FormulaR1C1

  1. #1
    Registered User
    Join Date
    01-17-2009
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    11

    Question vba FormulaR1C1

    how can i write a FormulaR1C1 in vba?
    i want to set the formula in cell V2 to "=IF(SUM(B2:U2)>0,SUM(B2:U2),"")"

    how can i do that in my macro?

    question2: how do i filldown column V?
    Last edited by .paul.; 01-26-2009 at 12:27 PM.

  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
    That's not an R1C1 formula. If you want to enter the formula you have,
    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    1)
    Please Login or Register  to view this content.
    2) If you can find the last relevant row, then put it into a variable. Assuming that column A will give you the last row then
    Please Login or Register  to view this content.
    rylo

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    How do you determine where to fill down to? This could be one way

    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Registered User
    Join Date
    01-17-2009
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: vba FormulaR1C1

    Quote Originally Posted by shg View Post
    That's not an R1C1 formula. If you want to enter the formula you have,
    Please Login or Register  to view this content.
    yeah i know. i wanted to convert it to a R1C1 formula...

  6. #6
    Registered User
    Join Date
    01-17-2009
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: vba FormulaR1C1

    how do i mark this thread SOLVED?

  7. #7
    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: vba FormulaR1C1

    yeah i know. i wanted to convert it to a R1C1 formula...
    See VBA Help for the ConvertFormula method.

    how do i mark this thread SOLVED?
    Click the Edit button on your first post in the thread

    Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes
    Last edited by shg; 01-26-2009 at 12:15 PM.

+ 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