- ©«¤l
- 214
- ¥DÃD
- 74
- ºëµØ
- 0
- ¿n¤À
- 296
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- office2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- hk
- µù¥U®É¶¡
- 2013-6-17
- ³Ì«áµn¿ý
- 2018-11-3
|
¥H¤UTest,°õ¦æ¤@¦¸,activesheet^¤å¥þ³¡§ï¬°"¤j·¢,¦A°õ¦æ¤@¦¸^¤å¥þ³¡§ï¬°"¤p·¢"
Sub LUcase(A As Boolean)
Dim R As Range
Dim R1 As Range
Dim R2 As Range
Dim cell As Range
Dim cell1 As Range
For Each cell In ActiveSheet.UsedRange.Areas
Set R1 = cell.Resize(, 1)
Set R2 = cell.Resize(1)
If A = True Then
cell = Evaluate("IF(ROW(" & R1.Address & "),iF(COLUMN(" & _
R2.Address & "),upper(" & cell.Address & ")))")
Else
cell = Evaluate("IF(ROW(" & R1.Address & "),iF(COLUMN(" & _
R2.Address & "),lower(" & cell.Address & ")))")
End If
Next cell
End Sub
Sub test()
Static A As Boolean
LUcase A
A = Not A
End Sub |
|