Excel精英培训网

 找回密码
 注册
数据透视表40+个常用小技巧,让你一次学会!
楼主: 楠木樨香

[原创]重发2009《如来神牚》

  [复制链接]
发表于 2011-10-14 20:43 | 显示全部楼层
我没看过我看看
回复

使用道具 举报

发表于 2011-10-14 20:45 | 显示全部楼层
回复

使用道具 举报

发表于 2011-10-14 21:21 | 显示全部楼层
回复

使用道具 举报

发表于 2011-10-28 13:10 | 显示全部楼层
啥叫如来神掌?主要讲啥的?
回复

使用道具 举报

发表于 2011-10-29 12:12 | 显示全部楼层
1111111111
回复

使用道具 举报

发表于 2011-10-30 23:23 | 显示全部楼层
看过的,支持下木木……
回复

使用道具 举报

发表于 2011-10-31 12:32 | 显示全部楼层
谢谢老师。
回复

使用道具 举报

发表于 2011-10-31 12:38 | 显示全部楼层
什么东西。?
回复

使用道具 举报

发表于 2011-10-31 12:41 | 显示全部楼层
本帖最后由 kakaco 于 2011-10-31 12:41 编辑


亲。能解释解释吗?

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    Application.EnableEvents = False
    Dim i As Long
    Dim x As Integer
    Dim y As Integer
    Dim z As Integer
    Dim h As Integer
    Dim l As Integer
    If Target.Row = 1 And Target.Column = 1 Then
         'MsgBox "老实呆着,不许跑。"
      Else
        Cells(Target.Row, Target.Column) = "悟空"
        'MsgBox "如来:悟空,回来吧。"
        x = Round((Rnd() * (3 - 1) + 1), 0)
        'Cells(1, 1) = x
        Cells(1, 1) = "如来神掌"
        ActiveSheet.Shapes("Picture 2").Select
        Selection.ShapeRange.IncrementLeft -5
        Selection.ShapeRange.IncrementTop -5
'11111111111111111111111111111111111111111111111111111111111111111111
        If x = 1 Then
            For h = Target.Row To 1 Step -1
                Cells(h + 1, Target.Column) = ""
                If h <> 1 Then
                   Cells(h, Target.Column) = "悟空"
                End If
                For i = 1 To 4000000 Step 1
                Next i
            Next h
            For l = Target.Column To 1 Step -1
               Cells(1, l + 1) = ""
               Cells(1, l) = "悟空"


               
               
               
               For i = 1 To 4000000 Step 1
               Next i
            Next l
        End If
         '222222222222222222222222222222222222222222222222222222222222222222
        If x = 2 Then
                For l = Target.Column To 1 Step -1
                    Cells(Target.Row, l + 1) = ""
                    If l <> 1 Then
                        Cells(Target.Row, l) = "悟空"
                    End If
                    For i = 1 To 4000000 Step 1
                    Next i
                Next l
                For h = Target.Row To 1 Step -1
                    Cells(h + 1, 1) = ""
                    Cells(h, 1) = "悟空"
                    
                    For i = 1 To 4000000 Step 1
                    Next i
                Next h

        End If
   '3333333333333333333333333333333333333333333333333333333333333333333333
        If x = 3 Then
            h = Target.Row
            l = Target.Column
            If h > l Then
                y = h
               Else
                y = l
            End If
            For z = y To 1 Step -1
                h = h - 1
                l = l - 1
                Cells(h + 1, l + 1) = ""
                If h < 1 Then
                   h = 1
                End If
                If l < 1 Then
                   l = 1
                End If
               
                Cells(h, l) = "悟空"
               
                For i = 1 To 2000000 Step 1
                Next i

            Next z
        End If
   '----------------------------------------------------------------------
   
   
    End If
    Cells(1, 1).Select
    Application.EnableEvents = True
End Sub

回复

使用道具 举报

发表于 2011-10-31 13:39 | 显示全部楼层
没看过,进来学习
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|Excel精英培训 ( 豫ICP备11015029号 )

GMT+8, 2025-8-16 03:36 , Processed in 0.357190 second(s), 7 queries , Gzip On, Yac On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表