Results 1 to 3 of 3

Capturing Data to Populate 2nd Sheet and Another Workbook

Threaded View

  1. #1
    Registered User
    Join Date
    12-16-2013
    Location
    sc
    MS-Off Ver
    Excel 2013
    Posts
    5

    Capturing Data to Populate 2nd Sheet and Another Workbook

    I am using a macro to capture data from one sheet and populating it on a second sheet. Now I am trying to take it a step further and also populate this data in another workbook. I have my macro in a button. I would like to put this other macro in the same button. Could some one please help, or guide me in the right direction?

    Here is the macro I am using

    Sub TextBox5_Click()
            Dim LR As Long:     LR = Sheets("OPERATORS").Range("A" & Rows.Count).End(xlUp).Row
    Dim NR As Long
    Dim RNG As Range:   Set RNG = Sheets("OPERATORS").Range("A2:A" & LR)
    
        With Sheets("TRACKER")
            NR = .Range("B" & .Rows.Count).End(xlUp).Row + 1
            .Range("A" & NR).Resize(RNG.Cells.Count).Value = Now
            .Range("B" & NR).Resize(RNG.Cells.Count).Value = RNG.Value
            .Range("C" & NR).Resize(RNG.Cells.Count).Value = RNG.Offset(0, 1).Value
            .Range("D" & NR).Resize(RNG.Cells.Count).Value = RNG.Offset(0, 2).Value
            .Range("E" & NR).Resize(RNG.Cells.Count).Value = RNG.Offset(0, 3).Value
            .Range("F" & NR).Resize(RNG.Cells.Count).Value = RNG.Offset(0, 4).Value
            .Range("G" & NR).Resize(RNG.Cells.Count).Value = RNG.Offset(0, 5).Value
            .Range("H" & NR).Resize(RNG.Cells.Count).Value = RNG.Offset(0, 6).Value
            .Range("I" & NR).Resize(RNG.Cells.Count).Value = RNG.Offset(0, 7).Value
            .Range("J" & NR).Resize(RNG.Cells.Count).Value = RNG.Offset(0, 9).Value
            .Range("K" & NR).Resize(RNG.Cells.Count).Value = RNG.Offset(0, 10).Value
            .Range("L" & NR).Resize(RNG.Cells.Count).Value = RNG.Offset(0, 11).Value
        End With
        
    
    
    End Sub

    Thanks
    Last edited by benjettt; 02-03-2014 at 12:06 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Filter not capturing Data
    By NYC4LIFE in forum Excel General
    Replies: 1
    Last Post: 07-24-2013, 04:07 PM
  2. [SOLVED] Capturing matched data from one tab to another
    By FiBell in forum Excel General
    Replies: 3
    Last Post: 09-25-2012, 07:35 AM
  3. Capturing changing data
    By Kleinz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-28-2011, 10:02 AM
  4. capturing data from websites
    By speedrater in forum Excel General
    Replies: 1
    Last Post: 02-25-2011, 01:00 PM
  5. Capturing Data
    By mikello in forum Excel General
    Replies: 2
    Last Post: 10-22-2009, 05:13 AM

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