I am trying to import a list of names from a closed workbook to another workbook that will be the general count of the names but I am getting all types of errors can someone help me?
Sub febrero()
Sheet2.Activate
'poniendo nombres a cada workbook
Dim wb1 As Workbook, wb2 As Workbook
Dim count1 As Integer
Application.ScreenUpdating = False
'definiendo wb1 y wb2
Set wb1 = ThisWorkbook
Set wb2 = Workbooks.Open("C:\Users\alede\OneDrive\Escritorio\hey\New folder\hey\datos m2017.xlsx")
' conteo
'copiando nombres de apartamentos
wb1.Sheets("Reporte").Range(Range("A4").End(xlDown)).Value = wb2.Sheets("Cuadro General").Range(Range("B4").End(xlDown)).Value
End Sub