I need to autofit
first two columns from Sheetx
, but I want to be able to start MACRO from any other sheet so I'm using With-method.
How to avoid using Select in this case?
Set ws = ThisWorkbook.Sheets("Sheetx")
With ws
.Columns("A:B").Select
Selection.EntireColumn.AutoFit
End with