I need to auto fit the visible columns with the data after the data are imported. I tried to use this:
ActiveSheet.Cells.SpecialCells(xlCellTypeVisible).Columns.AutoFit
and this
ActiveSheet.Cells.SpecialCells(xlCellTypeVisible).EntireColumn.AutoFit
But what the code does is makes all the...