Yeoman.jeremy
Board Regular
- Joined
- Apr 4, 2011
- Messages
- 90
Hi there.
Basically, i'm trying to copy and paste certain cells from one workbook, to another, I've looked up many other threads but couldn't find anything specifically that can help me.
Basically what happens in this excel workbook, is I have a Command button that will call this macro, to transfer certain data from the current workbook into a blank version of the workbook.
Here is my coding so far
Sub DuplicateComplex_mcr()
Dim wbk As Workbook
strFirstFile = "c:\Documents and settings\Jan\Desktop\On The Job Sheet"
Set wbk = ThisWorkbook
With wbk.Sheets("Job Sheet")
.Range("B2").Copy
End With
Set wbk = Workbooks.Open(strFirstFile)
With wbk.Sheets("Job Sheet")
Range("b2").Select
ActiveSheet.Paste
End With
End Sub
Any help would be very much appreciated
Basically, i'm trying to copy and paste certain cells from one workbook, to another, I've looked up many other threads but couldn't find anything specifically that can help me.
Basically what happens in this excel workbook, is I have a Command button that will call this macro, to transfer certain data from the current workbook into a blank version of the workbook.
Here is my coding so far
Sub DuplicateComplex_mcr()
Dim wbk As Workbook
strFirstFile = "c:\Documents and settings\Jan\Desktop\On The Job Sheet"
Set wbk = ThisWorkbook
With wbk.Sheets("Job Sheet")
.Range("B2").Copy
End With
Set wbk = Workbooks.Open(strFirstFile)
With wbk.Sheets("Job Sheet")
Range("b2").Select
ActiveSheet.Paste
End With
End Sub
Any help would be very much appreciated