Hi All
I have been out of work for over a year, but have just managed to pick up some work, unfortunately I seem to have forgotten so much.
Can somebody please help me finish my code.
I have some data in columns B:F
I have got it working to the point where I can find the last used cell in column C, then offset to column B. I have then set it up to copy that cell and paste it in another workbook just to try it
But what I need to do is copy from the selected cell in column B to column F, a row of 5 columns.
Any help will be gratefully received
I have been out of work for over a year, but have just managed to pick up some work, unfortunately I seem to have forgotten so much.
Can somebody please help me finish my code.
I have some data in columns B:F
I have got it working to the point where I can find the last used cell in column C, then offset to column B. I have then set it up to copy that cell and paste it in another workbook just to try it
But what I need to do is copy from the selected cell in column B to column F, a row of 5 columns.
Any help will be gratefully received
VBA Code:
Sub ImportData()
Dim Wb As Workbook
Dim CurrentSheet As Worksheet
Set CurrentSheet = ActiveSheet
Set Wb = ActiveWorkbook
Sheets("Del Note").Select
If Not IsEmpty(Range("Q2").Value) Then
CurrentSheet.Select
Exit Sub
Else
Application.ScreenUpdating = False ' turn off the screen updating
Sheets("Del Note").Select
Windows("_Delivery note list.xlsm").Activate
Sheets("Running List").Select
Range("C3").End(xlDown).Select
ActiveCell.Offset(0, -1).Copy' I need to copy row from selected cell in column B to column F
Wb.Activate
Sheets("Del Note").Select
ActiveSheet.Range("Q2").PasteSpecial Paste:=xlPasteValues
Application.CutCopyMode = False
End If
End Sub