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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
| Sub Macro8()
' HI 07035 B
' Macro8 Macro
'
'
With ActiveSheet.QueryTables.Add(Connection:= _
"TEXT;C:\scriptmeb\HI 07035 A.tif", Destination:=Range("A1"))
.Name = "HI 07035 A"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.TextFilePromptOnRefresh = False
.TextFilePlatform = xlWindows
.TextFileStartRow = 173
.TextFileParseType = xlDelimited
.TextFileTextQualifier = xlTextQualifierDoubleQuote
.TextFileConsecutiveDelimiter = False
.TextFileTabDelimiter = False
.TextFileSemicolonDelimiter = False
.TextFileCommaDelimiter = False
.TextFileSpaceDelimiter = False
.TextFileOtherDelimiter = "="
.TextFileColumnDataTypes = Array(1, 1)
.Refresh BackgroundQuery:=False
End With
ActiveWindow.SmallScroll Down:=-54
Rows("3:43").Select
ActiveWindow.SmallScroll Down:=-39
Rows("3:78").Select
Selection.Delete Shift:=xlUp
Rows("16:16").Select
ActiveWindow.SmallScroll Down:=-12
Range( _
"4:4,15:15,5:5,6:6,7:7,8:8,9:9,10:10,11:11,12:12,13:13,14:14,17:17,19:19,20:20,20:20,22:22" _
).Select
Range("A22").Activate
ActiveWindow.Zoom = 85
Range( _
"4:4,15:15,5:5,6:6,7:7,8:8,9:9,10:10,11:11,12:12,13:13,14:14,17:17,19:19,20:20,20:20,22:22,23:23,24:24,26:26" _
).Select
Range("A26").Activate
ActiveWindow.Zoom = 70
ActiveWindow.SmallScroll Down:=2
Range("B31").Select
ActiveWindow.SmallScroll Down:=-27
Rows("4:15").Select
Selection.Delete Shift:=xlUp
Rows("5:5").Select
Selection.Delete Shift:=xlUp
Rows("6:7").Select
Selection.Delete Shift:=xlUp
Rows("7:9").Select
Selection.Delete Shift:=xlUp
Rows("8:28").Select
Selection.Delete Shift:=xlUp
End Sub |
Partager