阅: 14475 | 回: 20

-
积分:2
-
财富值:4
-
身份:普通用户
回复:9楼
我用VBA实现了,但是我想选30个,句子太长,导致直接换行了,结果提示错误。请问该怎么做?Private Sub Worksheet_Activate()Union(Cells(Int(10 * Rnd()) + 1, Int(10 * Rnd()) + 1), Cells(Int(10 * Rnd()) + 1, Int(10 * Rnd()) + 1), Cells(Int(10 * Rnd()) + 1 , Int(10 * Rnd()) + 1), Cells(Int(10 * Rnd()) + 1, Int(10 * Rnd()) + 1), Cells(Int(10 * Rnd()) + 1, Int(10 * Rnd()) + 1), Cells(Int(10 * Rnd()) + 1, Int(10 * Rnd()) + 1), Cells(Int(10 * Rnd()) + 1, Int(10 * Rnd()) + 1), Cells(Int(10 * Rnd()) + 1, Int(10 * Rnd()) + 1), Cells(Int(10 * Rnd()) + 1, Int(10 * Rnd()) + 1), Cells(Int(10 * Rnd()) + 1, Int(10 * Rnd()) + 1), Cells(Int(10 * Rnd()) + 1, Int(10 * Rnd()) + 1), Cells(Int(10 * Rnd()) + 1, Int(10 * Rnd()) + 1), Cells(Int(10 * Rnd()) + 1, Int(10 * Rnd()) + 1), Cells(Int(10 * Rnd()) + 1, Int(10 * Rnd()) + 1), Cells(Int(10 * Rnd()) + 1, Int(10 * Rnd()) + 1), Cells(Int(10 * Rnd()) + 1, Int(10 * Rnd()) + 1), Cells(Int(10 * Rnd()) + 1, Int(10 * Rnd()) + 1), Cells(Int(10 * Rnd()) + 1, Int(10 * Rnd()) + 1), Cells(Int(10 * Rnd()) + 1, Int(10 * Rnd()) + 1), Cells(Int(10 * Rnd()) + 1, Int(10 * Rnd()) + 1), Cells(Int(10 * Rnd()) + 1, Int(10 * Rnd()) + 1), Cells(Int(10 * Rnd()) + 1, Int(10 * R
End Sub
我的个性签名