+ Reply to Thread
Results 1 to 4 of 4

Trying to transfer data from one sheet to a separate workbook

Hybrid View

  1. #1
    Registered User
    Join Date
    10-15-2014
    Location
    Elko, NV
    MS-Off Ver
    2013
    Posts
    3

    Trying to transfer data from one sheet to a separate workbook

    I'm not that experienced at using some of the advanced features of excel but am trying to learn. I'm currently trying to put together a spreadsheet for my job that will allow for us to input information on one spreadsheet, click a button, and have that information transferred to a master workbook for reference. There will be several different employees inputting info simultaneously and updating the master daily. Basically what there will be is employee name, equipment ID, work performed, time spent, complete, and date. Once the employee puts in the info and clicks the button, the data gets sent to a master sheet and the end result is a daily log of all the work performed throughout the shift. Is this possible? Please help.....I'm struggling!

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Trying to transfer data from one sheet to a separate workbook

    Does this help?

    Sub estep32()
    Dim ws As Worksheet
    Set ws = ActiveSheet
    ws.UsedRange.offset(1).Copy Sheets("Master").Range("A" & Rows.count).End(3)(2)
    End Sub

  3. #3
    Registered User
    Join Date
    10-15-2014
    Location
    Elko, NV
    MS-Off Ver
    2013
    Posts
    3

    Re: Trying to transfer data from one sheet to a separate workbook

    I found this online but it's giving me an error saying ("Libraries\Documents\DriftReportLog.xlxs could not be found. Check the spelling of the file name, and verify that the file location is correct. It all seems good to me. Any help?

    Private Sub CommandButton1_Click()
    Dim Mechanic As String
    Dim EquipmentID As String
    Dim WorkPerformed As String
    Dim TimeSpent As String
    Dim Complete As String
    Dim DriftReportLog As Workbook

    Worksheets("sheet1").Select
    Mechanic = Range("C4")
    Worksheets("sheet1").Select
    EquipmentID = Range("C5")
    Worksheets("sheet1").Select
    WorkPerformed = Range("C6")
    Worksheets("sheet1").Select
    TimeSpent = Range("C7")
    Worksheets("sheet1").Select
    Complete = Range("C8")

    Set DriftReportLog = Workbooks.Open("Libraries\Documents\DriftReportLog")
    Worksheets("sheet1").Select
    Worksheets("sheet1").Range("A2").Select
    RowCount = Worksheets("sheet1").Range("A2").CurrentRegion.Rows.Count
    With Worksheets("sheet1").Range("A2")
    .Offset(RowCount, 0) = Mechanic
    .Offset(RowCount, 1) = EquipmentID
    .Offset(RowCount, 2) = WorkPerformed
    .Offset(RowCount, 3) = TimeSpent
    .Offset(RowCount, 4) = Completesx
    End With
    DriftReportLog.Save
    End Sub

  4. #4
    Registered User
    Join Date
    10-15-2014
    Location
    Elko, NV
    MS-Off Ver
    2013
    Posts
    3

    Re: Trying to transfer data from one sheet to a separate workbook

    I found this online but it's giving me an error saying ("Libraries\Documents\DriftReportLog.xlxs could not be found. Check the spelling of the file name, and verify that the file location is correct. It all seems good to me. Any help?

    Private Sub CommandButton1_Click()
    Dim Mechanic As String
    Dim EquipmentID As String
    Dim WorkPerformed As String
    Dim TimeSpent As String
    Dim Complete As String
    Dim DriftReportLog As Workbook

    Worksheets("sheet1").Select
    Mechanic = Range("C4")
    Worksheets("sheet1").Select
    EquipmentID = Range("C5")
    Worksheets("sheet1").Select
    WorkPerformed = Range("C6")
    Worksheets("sheet1").Select
    TimeSpent = Range("C7")
    Worksheets("sheet1").Select
    Complete = Range("C8")

    Set DriftReportLog = Workbooks.Open("Libraries\Documents\DriftReportLog")
    Worksheets("sheet1").Select
    Worksheets("sheet1").Range("A2").Select
    RowCount = Worksheets("sheet1").Range("A2").CurrentRegion.Rows.Count
    With Worksheets("sheet1").Range("A2")
    .Offset(RowCount, 0) = Mechanic
    .Offset(RowCount, 1) = EquipmentID
    .Offset(RowCount, 2) = WorkPerformed
    .Offset(RowCount, 3) = TimeSpent
    .Offset(RowCount, 4) = Completesx
    End With
    DriftReportLog.Save
    End Sub

+ 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: 0
    Last Post: 09-09-2014, 07:04 AM
  2. [SOLVED] Transfer and combine data from 2 separate Sheet to 1 sheet
    By muddbog in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 04-10-2014, 01:51 PM
  3. Replies: 3
    Last Post: 02-21-2014, 09:05 AM
  4. How to transfer data from a daily input sheet to a separate monthly total sheet
    By Jcooper71 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-25-2014, 02:37 PM
  5. Transfer single column input data to fixed table in a separate Sheet
    By Prokis in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-07-2012, 05:37 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