|
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
作者隐藏了部分模块。隐藏内容:
Sub zd()
Dim j As Integer
Dim i As Integer
Dim l As Integer
On Error Resume Next
Range("a5:a6666") = ""
Range("e5:e6666") = ""
j = 5
l = 6
With Sheets("坐标展点")
Do While .Cells(j, 2) Or .Cells(j, 3) Or .Cells(j, 4) <> ""
.Cells(j, 5) = "_donut 0 " & .Cells(5, "k") & " " & Round(.Cells(j, 4), .Cells(5, "m")) & "," & Round(.Cells(j, 3), .Cells(5, "m")) & " " & " -text j ml " & Round(.Cells(j, 4), .Cells(5, "m")) + .Cells(5, "n") & "," & Round(.Cells(j, 3), .Cells(5, "m")) & " " & .Cells(5, "l") & " " & .Cells(5, "o") & " " & .Cells(j, 2)
j = j + 1
Loop
i = 5
Do While Cells(i, "E") <> ""
i = i + 1
Loop
Sheets("坐标展点").Range("E5:E" & i - 1).Select
Selection.Copy
Do While .Cells(l, 2) Or .Cells(l, 3) Or .Cells(l, 4) <> ""
.Cells(5, 1) = 1
.Cells(l, 1) = .Cells(l - 1, 1) + 1
l = l + 1
Loop
End With
End Sub
Sub fz()
Dim j As Integer
Dim i As Integer
Dim l As Integer
On Error Resume Next
Range("f5:f6666") = ""
j = 5
l = 6
With Sheets("坐标展点")
Do While .Cells(j, 2) Or .Cells(j, 3) Or .Cells(j, 4) <> ""
.Cells(j, 6) = "pline " & Round(.Cells(j, 4), .Cells(5, "m")) & "," & Round(.Cells(j, 3), .Cells(5, "m"))
j = j + 1
Loop
i = 5
Do While Cells(i, "F") <> ""
i = i + 1
Loop
Sheets("坐标展点").Range("F5:F" & i - 1).Select
Selection.Copy
Do While .Cells(l, 2) Or .Cells(l, 3) Or .Cells(l, 4) <> ""
.Cells(5, 1) = 1
.Cells(l, 1) = .Cells(l - 1, 1) + 1
l = l + 1
Loop
End With
End Sub
Sub Anti_Fake()
Dim sht As Worksheet
For Each sht In Sheets
sht.PageSetup.RightHeader = _
"工程测量博客http://www.fffsky.com/blog" & vbCr & "更多测量相关知识请添加微信号:fffskycom "
Next
End Sub
|
|