Results 1 to 6 of 6

using a cells value as part of vba formula

Threaded View

*benj using a cells value as part... 07-30-2010, 04:22 AM
Bob Phillips Re: using a cells value as... 07-30-2010, 04:31 AM
DonkeyOte Re: using a cells value as... 07-30-2010, 04:31 AM
royUK Re: using a cells value as... 07-30-2010, 04:33 AM
*benj Re: using a cells value as... 07-30-2010, 04:52 AM
Bob Phillips Re: using a cells value as... 07-30-2010, 08:17 AM
  1. #1
    Registered User
    Join Date
    07-14-2010
    Location
    chelmsford, england
    MS-Off Ver
    Excel 2007
    Posts
    16

    using a cells value as part of vba formula

    Hi,
    I need vba to perform a match function in one cell and to then use the value produced in this cell to identify the row from which to copy a number of cells.

    Getting vba to write the match code into a cell is no problem, but how do i then use this value as the row number in the below range( ).select

    something like... range("R"& cell(A10).value"C2:R"& cell(A10).value"C11").select ...only this doesn't seem to work



      Range("A10").Select
        ActiveCell.FormulaR1C1 = _
            "=MATCH(R[-7]C[10],'Competitors and Irradiance'!C[12],1)"
       
        Sheets(1).Select
        range("R"& cell(A10).value"C2:R"& cell(A10).value"C11").select
        Selection.Copy

    thanks in advance for any help with this
    Last edited by *benj; 07-30-2010 at 04:53 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