Hello,
I have this code to copy data rows from worksheet Download from File1 to School Employee Info worksheet. Both worksheets are in one excel file.
When i run the code below, it copies fine, but in the School Employee Info file, the formatting is not correct. So i was trying to use PasteSpecial code below and it becomes in red color in VBA window. Not sure if this is right or not. Any help will be appreciated.
'Employee Status
Worksheets("Download from File1").Cells(i, 13).Copy
Worksheets("Download from File1").Paste Destination:=Worksheets("School Employee Info").Cells(erow + 1, 1).PasteSpecial Paste:=xlPasteValues
I have this code to copy data rows from worksheet Download from File1 to School Employee Info worksheet. Both worksheets are in one excel file.
When i run the code below, it copies fine, but in the School Employee Info file, the formatting is not correct. So i was trying to use PasteSpecial code below and it becomes in red color in VBA window. Not sure if this is right or not. Any help will be appreciated.
'Employee Status
Worksheets("Download from File1").Cells(i, 13).Copy
Worksheets("Download from File1").Paste Destination:=Worksheets("School Employee Info").Cells(erow + 1, 1).PasteSpecial Paste:=xlPasteValues