vbscript 待做_xls

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了vbscript 待做_xls相关的知识,希望对你有一定的参考价值。

Sub color_clear()
    For i = 300 To 1000
        Rows(i).Interior.ColorIndex = 0
    Next
End Sub



Sub complete_date1()
    For i = 200 To ed(3, fc("item_设想", 2))
        If Cells(i, 1) = "" Then Cells(i, 1) = Cells(i + 1, 1)
    Next
End Sub
Sub m_end1()
    i1 = Selection.row
    If Cells(i1, 1) = "" Then
        MsgBox "Date is empty."
        Exit Sub
    End If
    
    Rows(i1).Select
    Selection.Cut
    Rows(eu(10000, fc("item_设想", 2)) + 1).Select
    Selection.Insert Shift:=xlDown
    Rows(i1).Select
    
End Sub

Sub r_delete1()
c1 = fc("item_设想", 2)
For i = ed(3, c1) To eu(10000, c1)
    If Cells(i, c1) = "" Then
        Rows(i).Select
        If MsgBox("delete " & i & " row", vbOKCancel) = vbOK Then
            Rows(i).Delete
        End If
    End If
Next
End Sub

Sub extr_period_plan()
arr1 = Split("周期计划,月计划,周计划", ",")
End Sub






'func------------
Sub add_hyperlink1()
    i1 = Selection.row
    j1 = Selection.Column
    Cells(i1, j1 + 1).Select
    ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:="", SubAddress:= _
        ActiveSheet.Name & "!a" & Cells(i1, j1) + 4, TextToDisplay:="jump"
    Cells(Cells(i1, j1) + 1, 1).Select
    ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:="", SubAddress:= _
        ActiveSheet.Name & "!" & convert1(j1) & i1, TextToDisplay:="jump"
    Cells(i1, j1).Select
End Sub

以上是关于vbscript 待做_xls的主要内容,如果未能解决你的问题,请参考以下文章

vbscript 批量转换XLS到XLSX

一些待做的事情

待做清单

更新 Excel 工作表(在经典 ASP/Vbscript 中)

如何在计算机锁定时运行 VBScript GetObject?

[LeetCode]23. 合并K个排序链表(优先队列;分治待做)