I have one workbook where I have some userform and code. Now based on this macro I am fetching the data into another workbook. Now From first excel I want to format the 2nd workbook after getting required data.
Below is my code:
Set abc = objWorkbook1.Sheets(report_shtnm)
abc.Activate
With Sheet2.Range(Cells(4, 1), Cells(rw_reps_sht, cl_reps_sht))
.Borders.Weight = xlThin
.WrapText = True
End With
The problem is its formatting the excel which has macro. Please help.