-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathformatCSV.bas
More file actions
31 lines (30 loc) · 1.13 KB
/
formatCSV.bas
File metadata and controls
31 lines (30 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Attribute VB_Name = "Module1"
Sub format()
Attribute format.VB_ProcData.VB_Invoke_Func = " \n14"
'
' format Macro
'
'
Range("A1:CW64").Select
Selection.Copy
Sheets.Add After:=ActiveSheet
Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True
Application.CutCopyMode = False
Selection.FormatConditions.Add Type:=xlTextString, String:="p", _
TextOperator:=xlContains
Selection.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority
With Selection.FormatConditions(1).Interior
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorAccent6
.TintAndShade = 0.399945066682943
End With
Selection.FormatConditions(1).StopIfTrue = False
ActiveSheet.ListObjects.Add(xlSrcRange, Range("$A$1:$BL$101"), , xlYes).Name = _
"Table1"
Range("Table1[#All]").Select
ActiveSheet.ListObjects("Table1").TableStyle = "TableStyleLight16"
ActiveSheet.ListObjects("Table1").ShowTableStyleRowStripes = False
ActiveSheet.ListObjects("Table1").ShowTableStyleColumnStripes = True
Range("J5").Select
End Sub