Sarahj0630
New Member
- Joined
- Aug 14, 2012
- Messages
- 11
I'm wanting to log user inputs from one spreadsheet to another one that would be closed. It just needs to paste to the next available row. I've scoured the internet and am having trouble finding something that works. The below code will open the workbook but isn't copy/pasting the info or closing the new workbook. I'm getting a run-time error. Please help!
Sub UpdateTrackerTool()
Dim FilePath As String
Dim wbk As Workbook
TrackerTool = "C:\Users\blah blah\Tech Issue Tracking Tool.xlsm"
Set wbk = ActiveWorkbook
Workbooks.Open TrackerTool
Range("A2").End(xlDown).Offset(1, 0).Select
wbk.Sheets("Tech Issue").Range("Q29:AA29").copy Destination:=ActiveCell
ActiveWorkbook.Close savechanges:=True
MsgBox "Technical Issue Logged Successfully!"
End Sub
Sub UpdateTrackerTool()
Dim FilePath As String
Dim wbk As Workbook
TrackerTool = "C:\Users\blah blah\Tech Issue Tracking Tool.xlsm"
Set wbk = ActiveWorkbook
Workbooks.Open TrackerTool
Range("A2").End(xlDown).Offset(1, 0).Select
wbk.Sheets("Tech Issue").Range("Q29:AA29").copy Destination:=ActiveCell
ActiveWorkbook.Close savechanges:=True
MsgBox "Technical Issue Logged Successfully!"
End Sub