Hello,
I am working on a macro to find column names "Prov_Specialty" , add new column named "Specialty1" and copy data from the original column to the new column.
Here is how far did I get:
Dim Found As Range
Dim LR As Long
Set Found = Rows(1).Find(what:="Prov_Specialty", LookIn:=xlValues, lookat:=xlWhole)
If Found Is Nothing Then Exit Sub
LR = Cells(Rows.Count, Found.Column).End(xlUp).Row
Found.Offset(, 1).EntireColumn.Insert
Cells(1, Found.Column + 1).Value = "Specialty1"
Do not know how to copy data from Prov_specialty to Speciality1 columns. Please help.
Thank you
I am working on a macro to find column names "Prov_Specialty" , add new column named "Specialty1" and copy data from the original column to the new column.
Here is how far did I get:
Dim Found As Range
Dim LR As Long
Set Found = Rows(1).Find(what:="Prov_Specialty", LookIn:=xlValues, lookat:=xlWhole)
If Found Is Nothing Then Exit Sub
LR = Cells(Rows.Count, Found.Column).End(xlUp).Row
Found.Offset(, 1).EntireColumn.Insert
Cells(1, Found.Column + 1).Value = "Specialty1"
Do not know how to copy data from Prov_specialty to Speciality1 columns. Please help.
Thank you