+ Reply to Thread
Results 1 to 9 of 9

Vlookup Macro

  1. #1
    Forum Contributor
    Join Date
    01-05-2011
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    243

    Vlookup Macro

    I am looking for a Vlookup macro between two sheets. But every time the rows in sheet 2 will differ. So looking for a vlookup with dynamic range...

    Regards,
    Vijay

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Vlookup Macro

    Hi,

    In the Excel Application create a dynamic range name for the rows. See here http://www.contextures.com/xlnames01.html#Dynamic if you need help to do this.

    Then just use the dynamic range name in your macro code.

    Regards
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    01-05-2011
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    243

    Thumbs up Macro Copy and paste value till the last row

    Hi,

    I am looking for a macro to copy and paste the formula till the last row.
    I am trying to concatenate column and A and B and the formula entered in column C should get copied and pasted till the last row in column B.

    Regards,
    Vijay
    Last edited by vijanand1279; 01-06-2011 at 10:53 AM. Reason: Solved

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Macro Copy and paste value till the last row

    Hi,

    Untested but

    Please Login or Register  to view this content.
    Change the sheet ref as appropriate.

    Please note that this is nothing to do with a VLOOKUP. Your original post didn't describe the actual requirement.

    Rgds

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Vlookup Macro


  6. #6
    Forum Contributor
    Join Date
    01-05-2011
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    243

    Re: Macro Copy and paste value till the last row

    The formula on the Column C is copied and pasted only the last row but not on all the rows untill last rows.

    [SOLVED]
    Last edited by vijanand1279; 01-06-2011 at 10:55 AM.

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Macro Copy and paste value till the last row

    Hi,

    That's exactly what my solution does.

    If you think any different then please upload an example workbook showing a before and after position which shows exactly what you want, otherwise we are destined to go round in circles.

    Rgds

  8. #8
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Vlookup Macro

    Will you read the Forum Rules
    Hope that helps.

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

    Free DataBaseForm example

  9. #9
    Forum Contributor
    Join Date
    01-05-2011
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    243

    Thumbs up Re: Macro Copy and paste value till the last row

    Quote Originally Posted by Richard Buttrey View Post
    Hi,

    Untested but

    Please Login or Register  to view this content.
    Change the sheet ref as appropriate.

    Please note that this is nothing to do with a VLOOKUP. Your original post didn't describe the actual requirement.

    Rgds
    Thank you. This helps

    REgards,
    Vijay

+ 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