Académique Documents
Professionnel Documents
Culture Documents
Dim i As Integer
Application.ScreenUpdating = False
HeaderRange.Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorDark2
.TintAndShade = -9.99786370433668E-02
.PatternTintAndShade = 0
End With
Selection.Borders.LineStyle = xlContinuous
Selection.Font.Bold = True
Cells.Select
Cells.EntireColumn.AutoFit
ActiveSheet.UsedRange.Font.Size = 10
ActiveSheet.UsedRange.NumberFormat = "0"
FirstRowFirstColumn.Select
Application.ScreenUpdating = True
'StartCounter = FirstRowFirstColumn.Column
'EndCounter = FirstRowLastColumn.Column
End Sub
Sub CreateDynamicPivot()
'PURPOSE: Creates a brand new Pivot table on a new worksheet from data in the
ActiveSheet
'Source: www.TheSpreadsheetGuru.com
Application.ScreenUpdating = False
ActiveSheet.PivotTables(CurrentPivotTableName).PivotFields( _
pvtFld.Name).Subtotals = Array(False, False, False, False, False, False,
False, _
False, False, False, False, False)
Next
With ActiveSheet.PivotTables(CurrentPivotTableName)
.ColumnGrand = False
.RowGrand = False
End With
ActiveSheet.PivotTables(CurrentPivotTableName).RepeatAllLabels _
xlRepeatLabels
Range("C4").Select
With ActiveSheet.PivotTables(CurrentPivotTableName)
.HasAutoFormat = False
.InGridDropZones = True
.RowAxisLayout xlTabularRow
End With
Formatting
End Sub
Sub Sum_Visible_Cells()
'Application.Volatile
End Sub
Sub Copy_Paste_VisibleCells()
ColumnNum = ActiveCell.Column
End Sub