And my suggestions are:
- If you use Evaluate, you can bring 'transpose' within the evaluate function.
- If you use column there's no need to 'transpose'
- if you use a named range you can use the abbreviated writing style of evaluate:
Instead of 'Select' you can use 'Delete'
Code:
Sub M_snb()
Names.Add "snb_001", Columns(1).Resize(, sheets.Count - 1)
Sheets([column(snb_001)]).Select
Sheets(Evaluate("Column(offset(A1,,,," & sheets.Count - 1 & "))")).Select
Sheets(Evaluate("transpose(Row(1:" & sheets.Count - 1 & "))")).Select
End Sub
Bookmarks