+ Reply to Thread
Results 1 to 5 of 5

Problem using range.address in a formula

  1. #1
    Forum Contributor
    Join Date
    06-19-2014
    Location
    Toronto, Canada
    MS-Off Ver
    Office365
    Posts
    273

    Problem using range.address in a formula

    Hello,

    I need to link a cell on one worksheet to a cell on another. the last line has syntax errors in it and I don't know how to fix it.
    the code finds "what" in worksheet 218500Amort. range C12:C500. I need worksheets("218500").range("b22") to have a formula rather than directly = ra. can someone please help?

    PHP Code: 
    Dim ra As Range
        Dim what
    what 
    Format(Worksheets("218500").Range("L1"), "m/d/yyyy")
        
    Set ra Worksheets("218500Amort.").Range("C12:C500").Find(what:=whatLookIn:=xlFormulasLookAt _
            
    :=xlPartSearchOrder:=xlByRowsSearchDirection:=xlNextMatchCase:= _
            False
    SearchFormat:=False).Offset(07)

    Worksheets("218500").Range("B22").Formula "='218500Amort.'!& ra.Address" 
    https://www.mrexcel.com/forum/excel-...ml#post5360114
    Last edited by lynnsong986; 10-22-2019 at 04:42 PM.

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Problem using range.address in a formula

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. No help to be offered until the link is provided.)


    See
    https://www.mrexcel.com/forum/excel-...s-formula.html
    - Battle without fear gives no glory - Just try

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Problem using range.address in a formula

    Hello lynnsong986,

    This should work...

    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  4. #4
    Forum Contributor
    Join Date
    06-19-2014
    Location
    Toronto, Canada
    MS-Off Ver
    Office365
    Posts
    273

    Re: Problem using range.address in a formula

    I'm so sorry I didn't know about cross posting. just thought I'd get a reply sooner because this is kind of urgent...

  5. #5
    Forum Contributor
    Join Date
    06-19-2014
    Location
    Toronto, Canada
    MS-Off Ver
    Office365
    Posts
    273

    Re: Problem using range.address in a formula

    yes works perfectly! thanks so much!!

+ 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: 3
    Last Post: 09-09-2019, 03:59 PM
  2. [SOLVED] Range Address in a Cell, Use in Formula
    By codeslizer in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-04-2013, 05:27 AM
  3. [SOLVED] Use address of named range to find same address in another worksheet
    By dwsteyl in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-08-2013, 04:56 PM
  4. [SOLVED] Use TEXT Address result in user defined formula as Range
    By sinoop_joy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-25-2013, 12:09 AM
  5. IP address range formula in excel
    By drakehaze in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-15-2010, 01:54 AM
  6. address elements in a range in a formula
    By smileyc in forum Excel General
    Replies: 2
    Last Post: 03-01-2009, 05:13 PM
  7. [SOLVED] Formula to return ADDRESS of cell in range that meets criteria
    By Christie in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-04-2005, 08:06 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