久久国产成人av_抖音国产毛片_a片网站免费观看_A片无码播放手机在线观看,色五月在线观看,亚洲精品m在线观看,女人自慰的免费网址,悠悠在线观看精品视频,一级日本片免费的,亚洲精品久,国产精品成人久久久久久久

分享

漢字乘法口訣VBA

 昵稱3029892 2015-04-20
用法:
      打開EXCEL電子表格,,右鍵sheet1------>點“查看代碼”--------->將下面VBA代碼復(fù)制到
book1-sheet1代碼窗口------->按f5功能鍵運行代碼,。即可得到漢語乘法口訣,!
 
Sub 中文乘法口訣()
Dim s$
s = "一二三四五六七八九"
Dim x%, y%, n%
n = 1
For x = 1 To 9
    For y = 1 To n
    Cells(x, y).Select
    If x * y < 10 Then
    Cells(x, y).Value = Mid(s, y, 1) & Mid(s, x, 1) & "得" & Mid(s, x * y, 1)
         Else
         If Mid(Format(x * y, "0"), 2, 1) = "0" Then
        Cells(x, y).Value = Mid(s, y, 1) & Mid(s, x, 1) & Mid(s, x * y / 10, 1) & "十"
            Else
            If x * y > 10 And x * y < 20 Then
            Cells(x, y).Value = Mid(s, y, 1) & Mid(s, x, 1) & "十" & Mid(s, Val(Mid(Format(x * y, "0"), 2, 1)), 1)
                    Else
                    Cells(x, y).Value = Mid(s, y, 1) & Mid(s, x, 1) & Mid(s, Val(Mid(Format(x * y, "0"), 1, 1)), 1) & "十" & Mid(s, Val(Mid(Format(x * y, "0"), 2, 1)), 1)
                    End If
             End If
        End If
          With ActiveCell.Characters(Start:=1, Length:=1).Font
       .Size = 30
        .ColorIndex = 3
    End With
    With ActiveCell.Characters(Start:=2, Length:=1).Font
        .Size = 30
        .ColorIndex = 5
    End With
    With ActiveCell.Characters(Start:=3, Length:=3).Font
        .Size = 30
        .ColorIndex = 1
    End With
      With Selection.Borders(xlEdgeLeft)
        .LineStyle = xlContinuous
        .Weight = xlMedium
        .ColorIndex = 3
    End With
    With Selection.Borders(xlEdgeTop)
        .LineStyle = xlContinuous
        .Weight = xlMedium
        .ColorIndex = 3
    End With
    With Selection.Borders(xlEdgeBottom)
        .LineStyle = xlContinuous
        .Weight = xlMedium
        .ColorIndex = 3
    End With
    With Selection.Borders(xlEdgeRight)
        .LineStyle = xlContinuous
        .Weight = xlMedium
        .ColorIndex = 3
    End With
    Next y
    n = n + 1
Next x
Columns("a:i").ColumnWidth = 27
End Sub

    本站是提供個人知識管理的網(wǎng)絡(luò)存儲空間,,所有內(nèi)容均由用戶發(fā)布,,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式,、誘導(dǎo)購買等信息,,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,,請點擊一鍵舉報,。
    轉(zhuǎn)藏 分享 獻花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約