- ©«¤l
- 109
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 116
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- 2007
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2016-8-4
- ³Ì«áµn¿ý
- 2018-10-22
 
|
¦^´_ 17# hong912
¬O2Өƥó¡An©ñ¦b¦P¤@Óworksheet¡C«ö¥kÁä«á·|Åܦâ¦P®É¦X¨ÖÀx¦s®æ¡A¦pªG¦b¸ÌÀY¿é¤J¡A·|¦³´«¦Cªº®ÄªG(¦ý¤£¬O«Üº}«G)¡C
Ó¤Hı±o¡A¦pªG·|»Ýn¾Þ§@¤½¦¡©Îµ{¦¡¡A«D¥²nºÉ¶qÁקK¨Ï¥Î¦X¨ÖÀx¦s®æ¡AÀx¦s®æ¦X¨Ö¤§«á¡A®e©ö¦³«Ü¦h©_©_©Ç©Çªº°ÝÃD¡C- Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As Boolean)
- With Selection
- If .Interior.ColorIndex = 5 Then
- .Interior.ColorIndex = 3
-
- Else
- .Interior.ColorIndex = 5
- .Merge
- .WrapText = True
-
- End If
- End With
- End Sub
- Private Sub Worksheet_Change(ByVal Target As Range)
- Dim Vhight As Single
- If Target.WrapText = True Then
- With Target
- .Select
- .RowHeight = 1
- .WrapText = True
- .UnMerge
- .EntireRow.AutoFit
- Selection.Merge
- Vhight = .Width * .Height / Selection.Width
- If Vhight < 16 Then Vhight = 16
- .RowHeight = Vhight
- .VerticalAlignment = xlCenter
- End With
- End If
- End Sub
½Æ»s¥N½X |
|