+ Reply to Thread
Results 1 to 5 of 5

VBA program to catch Vlookup from other sheet

  1. #1
    Registered User
    Join Date
    06-12-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    86

    VBA program to catch Vlookup from other sheet

    Dear Excel Experts,

    I was trying to place vba code to copy data in Sheet1 to Sheet Master. Then i need header "Sales Type", "Classification", "Customer Type" at the top using

    range("A1").End(xlToRight).Select
    Selection.Offset(0, 1).Select

    Then, i need data from sheet MPG via vlookup using do while till data value in cell B4 of input sheet.

    value in cell B4 of input sheet = counta no of cells in sheet 1

    For small data, its working but for large data say 30000 line items, it keeps on moving.

    Request if you may help to tie up the vba codes and get it run faster.

    A copy of dummy data is attached. Seeking your expertise knowledge to help me.
    It is working for a small set of data but fails for a large set of data.


    Am not able to upload the file as it showing the file attached is too large. So reducing the data to sample one.

    VBA Code in module 1 is

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Kamal Asharaf; 02-21-2021 at 08:03 AM.

  2. #2
    Registered User
    Join Date
    06-12-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    86

    Re: VBA program to catch Vlookup from other sheet

    The output is in the master worksheet.

  3. #3
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,302

    Re: VBA program to catch Vlookup from other sheet

    You have been a member on this site long enough to know the rules - please re-read and comply.
    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)

  4. #4
    Registered User
    Join Date
    06-12-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    86

    Re: VBA program to catch Vlookup from other sheet

    Yes, Sorry as i forget to place VBA Code in TAG code.....Request, if your goodself or any other excel master may extent help.

  5. #5
    Registered User
    Join Date
    06-12-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    86

    Re: VBA program to catch Vlookup from other sheet

    Dear All,

    I am waiting for much needed help for correcting above mentioned VBA Codes. A copy of the sample excel file is also attached for ready reference.

+ 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: 5
    Last Post: 11-02-2018, 11:31 AM
  2. Replies: 4
    Last Post: 06-01-2018, 09:38 AM
  3. Replies: 4
    Last Post: 04-27-2015, 03:21 PM
  4. Program a VLOOKUP formula
    By mma3824 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-12-2014, 04:44 PM
  5. I need to place a pause/delay in my code to allow my program to catch up
    By fionajane in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-14-2009, 04:24 AM
  6. Program VLookup
    By Steph in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-28-2006, 05:20 PM
  7. how to catch the second or more cell with vlookup
    By Valley in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-23-2006, 07:10 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