+ Reply to Thread
Results 1 to 2 of 2

Unable to Populate data from Tracker sheet to Result Sheet ples provide vb coding

Hybrid View

  1. #1
    Registered User
    Join Date
    07-23-2013
    Location
    Pune
    MS-Off Ver
    Excel 2010
    Posts
    10

    Smile Unable to Populate data from Tracker sheet to Result Sheet ples provide vb coding

    Dear sir,

    When i enter LR Number in result sheet then automatically data should paste tracker data related L Number.

    Please help.

    Thanks
    Dattatray Kumbar
    Attached Files Attached Files

  2. #2
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,784

    Re: Unable to Populate data from Tracker sheet to Result Sheet ples provide vb coding

    You could try this. Right click on tab "Result" then click on "View code"

    In the windows that opends paste this code:

    Private Sub Worksheet_Change(ByVal Target As Range)
        
        If Not Intersect(Target, Range("C5")) Is Nothing Then
            Run "UpDt"
        End If
    End Sub
    Then click on "Insert" and click on "Module" in the windows that opends paste this code

    Sub UpDt()
    
    Sheets("Result").Range("A8").CurrentRegion.Clear
    
    'Sheets("Tracker").Activate
    
    Sheets("Tarcker").Activate
    
    Range("A4").CurrentRegion.AutoFilter Field:=2, Criteria1:=Sheets("Result").Range("C5")
    
    Range("A4").CurrentRegion.Copy
    
    Sheets("Result").Range("A8").PasteSpecial Paste:=xlPasteValues
    Sheets("Result").Range("A8").PasteSpecial Paste:=xlPasteFormats
    
    Application.CutCopyMode = False
    
    ActiveSheet.AutoFilterMode = False
    
    Sheets("Result").Activate
    
    End Sub
    Close visual basic windows and save file with .xlsm exstention.

    Macro will run whenever you enter a valur in cell C5 (sheet "Result")

    Alf

+ 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. Unable to create a individual result sheet of student
    By mukeshbaviskar in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-13-2014, 02:16 PM
  2. Please provide vb coding for auto protect excel sheet
    By dswara1829 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-31-2014, 07:47 AM
  3. Please provide VB coding for Escel Sheet Auto lock
    By dswara1829 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-31-2014, 06:06 AM
  4. Replies: 2
    Last Post: 10-22-2013, 08:04 AM
  5. [SOLVED] Excel VBA: Dropdown box selection in first sheet to populate 2nd sheet from 3rd sheet data
    By EMLalan in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-07-2012, 09:46 AM

Tags for this Thread

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