XLA routines: EE_FinalFormatSheet
EE_FinalFormatSheet is a good sub routine to use when creating a set of results to clean up the sheet
Sub EE_FinalFormatSheet(strSheetName As String) 'Takes a sheet name as string 'If sheet doesn't exist, exit sub 'Sub autofits the cols 'Selects A2 'Freezes Panes 'http://excelexperts.com/xla-routines-eeFinalFormatSheet for updates on this sub routine Dim wksActive As Worksheet Set wksActive = ThisWorkbook.ActiveSheet If EE_SheetExists(strSheetName) = True Then With ThisWorkbook.Worksheets(strSheetName) .Cells.EntireColumn.AutoFit Application.GoTo .range("A2") ActiveWindow.FreezePanes = True End With End If wksActive.Activate Set wksActive = Nothing End Sub
»
- Nick's blog
- Login or register to post comments
- 2956 reads
Recent comments
5 years 36 weeks ago
6 years 22 weeks ago
6 years 34 weeks ago
6 years 37 weeks ago
6 years 38 weeks ago
6 years 43 weeks ago
6 years 52 weeks ago
7 years 2 days ago
7 years 3 days ago
7 years 3 days ago