+ Reply to Thread
Results 1 to 8 of 8

vlookup formula using vba

  1. #1
    Forum Contributor
    Join Date
    02-04-2017
    Location
    chennai
    MS-Off Ver
    MS OFFICE 365
    Posts
    253

    vlookup formula using vba

    Dear friends
    I need help with vlookup formula using vba. what I required automatically copy the formula in next row
    For example: =VLOOKUP(C2,'C:\Users\username\Desktop\New folder (2)\New folder (2)\[New Microsoft Excel Worksheet.xlsx]Sheet1'!$A:$B,2,0),this is the formula in D2. Now I want Get automatically in next row using VBA

  2. #2
    Forum Contributor
    Join Date
    11-10-2017
    Location
    INDIA
    MS-Off Ver
    365
    Posts
    184

    Re: vlookup formula using vba

    HI Check this out!!

    Please Login or Register  to view this content.
    *If you wish you click on *,a way to say ThankYou

  3. #3
    Forum Contributor
    Join Date
    02-04-2017
    Location
    chennai
    MS-Off Ver
    MS OFFICE 365
    Posts
    253

    Re: vlookup formula using vba

    Quote Originally Posted by Sunny18pc View Post
    HI Check this out!!

    Please Login or Register  to view this content.

    Dear Sunny18pc


    its working in next cell but i need next row. for example D2 to D3......

  4. #4
    Forum Contributor
    Join Date
    11-10-2017
    Location
    INDIA
    MS-Off Ver
    365
    Posts
    184

    Re: vlookup formula using vba

    Then change the value of offset from 0,1 to 1,0.

    #ActiveCell.Offset(1, 0).Select

    Thanks

  5. #5
    Forum Contributor
    Join Date
    02-04-2017
    Location
    chennai
    MS-Off Ver
    MS OFFICE 365
    Posts
    253

    Re: vlookup formula using vba

    Quote Originally Posted by Sunny18pc View Post
    Then change the value of offset from 0,1 to 1,0.

    #ActiveCell.Offset(1, 0).Select

    Thanks
    Ok sunny thanks but this type i have 5 worksheet how i i apply the vba
    Last edited by sudbhavani; 01-28-2020 at 06:20 AM.

  6. #6
    Forum Contributor
    Join Date
    02-04-2017
    Location
    chennai
    MS-Off Ver
    MS OFFICE 365
    Posts
    253

    Re: vlookup formula using vba

    Dear sunny

    in my excel this format i update the name automatically formula will get in branch this type i have 5 sheet in one workbook


    S.No Date Name Branch CLIENT NAME PAX NAME CLIENT
    1 28-01-2020 Durai Chennai BR1 BR1 BR1 BR1
    2 28-01-2020 Sridhar Chennai BR1 BR1 BR1 BR1

  7. #7
    Forum Contributor
    Join Date
    11-10-2017
    Location
    INDIA
    MS-Off Ver
    365
    Posts
    184

    Re: vlookup formula using vba

    Dear, I doubt i can assist you better if you can ask your complete query at once as VBA is Ocean.

    If you are stuck at some point then we can help you but if you are not sure whats the logic of implementation, would appreciate to discuss here.

    *For your last question: You can either paste the same code in each file or can run a loop to call each work book paste the same formula.

  8. #8
    Forum Contributor
    Join Date
    11-10-2017
    Location
    INDIA
    MS-Off Ver
    365
    Posts
    184

    Re: vlookup formula using vba

    Quote Originally Posted by sudbhavani View Post
    Dear sunny

    in my excel this format i update the name automatically formula will get in branch this type i have 5 sheet in one workbook


    S.No Date Name Branch CLIENT NAME PAX NAME CLIENT
    1 28-01-2020 Durai Chennai BR1 BR1 BR1 BR1
    2 28-01-2020 Sridhar Chennai BR1 BR1 BR1 BR1
    Worksheets and sheets are 2 different things, as I doubted you are not clear with your logic, add the sample file and let us know your complete requirement.

+ 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. [SOLVED] VLOOKUP formula or VLOOKUP worksheet.function
    By Crispy85 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-09-2017, 09:40 AM
  2. Replies: 5
    Last Post: 12-07-2016, 09:18 AM
  3. VBA external VLOOKUP instead of VLOOKUP-formula in cell
    By ExcelBonk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-07-2016, 02:41 PM
  4. [SOLVED] Vlookup with column name instead of col_index_name(3rd Section of Vlookup formula)
    By akulka58 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-21-2014, 10:42 AM
  5. [SOLVED] VBA code for change vlookup formula to vlookup formula with ISNA
    By erprasannaa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-12-2013, 03:33 AM
  6. Vlookup referencing a vlookup formula
    By laurenann in forum Excel General
    Replies: 1
    Last Post: 01-24-2011, 05:52 PM
  7. vlookup-reate a vlookup formula?
    By Pam C in forum Excel General
    Replies: 1
    Last Post: 03-16-2006, 12:15 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