How do we remake the program to copy not one value value but with range in column age? We need copy all values from age.xlsm age column to another age column in shchool.xlsm file
school.xlsm
name | age |
peter1 | |
jane2 | |
ted | |
peter3 |
age.xlsm
name | age |
mark3 | 1,2 |
peter1 | 5 |
jane2 | 1,5 |
the program copy one value, how do we copy all values from age column from age.xlsm to shool.xlsm file
Sub copydata()
Dim iAge As Integer
Set src=Workbooks.Open("age.xlsm", True, True)
iAge = src.Worksheets("Sheet1").Range("B2").Value
ThisWorkbook.Worksheets("Sheet1").Range("В2").Value = iAge
End Sub