- ©«¤l
- 559
- ¥DÃD
- 58
- ºëµØ
- 0
- ¿n¤À
- 626
- ÂI¦W
- 0
- §@·~¨t²Î
- win8
- ³nÅ骩¥»
- office2013
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- TW
- µù¥U®É¶¡
- 2010-11-22
- ³Ì«áµn¿ý
- 2024-6-14
|
¦^´_ 3# PJChen
¦A¤Þ¥ÎG¤j¤jªº¼gªk~ ¦Û¤v§ï¤@¤U~
µ{¦¡³]p«en¥ý¤ÀªR¤@¤U·Qnªºµ²ªG¬O¤°»ò~ ¦A«ç»ò¨Ó¼g~
¨Ì±z»ÝnªºªF¦è~
«ö¤U¥ô¤@Ó«ö¶s®É~ ¤£ºÞ¬O¶}·sÀɩάO°õ¦æ¸ÓÀɤºªº¤º®e~ ´N¶i¦æ¦rªº¤j¼g½Õ¾ã
¦]¦¹¥Î¤@ÓIF ¨Ó§PÂ_~ ¬On°õ¦æ¸ÓÀÉ®×ÁÙ¬O°õ¦æ·s¶}ªºÀÉ®×
©Ò¥H¥[¤F¤@Ó¥´¶}EXCELªº«ü¥O,§PÂ_¬O¤£¬On¶}ÀÉ®×,
¨Ó§¹¦¨³Ì«áªºµ²ªG~- Sub uppera() '¥þ³¡¤j¼g
- patch = Application.GetOpenFilename("Microsoft Excel ¬¡¶Ã¯ (*.xls), *.xls")
- If patch = False Then
- Dim E As Range, Rng As Range
- If TypeName(Selection) <> "Range" Then Exit Sub '¤£¬ORange(Àx¦s®æ)¤£©¹¤U°õ¦æµ{¦¡
- If Selection.Count = 1 And Selection(1) = "" Then Exit Sub '¿ï¾Ü1Àx¦s®æ¥B¬°ªÅ¥Õ®É¤£©¹¤U°õ¦æµ{¦¡
- For Each E In Selection.SpecialCells(xlCellTypeConstants)
- E.Value = UCase(E) '¥þ³¡Âà´«¬°¤j¼g
- '**: Mid(E, 1, 1)-> ±q²Ä1Ó¦r¤¸°_Ū¤J¤@Ó¦r¤¸ªº¦r¦ê
- '**" Mid(E, 2) -> ±q²Ä2Ó¦r¤¸°_Ū¤J¥þ³¡ªº¦r¦ê
- Next
- Else
- With Workbooks.Open(patch)
- For Each E In .Sheets("¤u§@ªí1").Range("A:C")
- E.Value = UCase(E)
- Next
- End With
- End If
- End Sub
- Sub upperaf() '²Ä¤@Ó¦r¤j¼g
- patch = Application.GetOpenFilename("Microsoft Excel ¬¡¶Ã¯ (*.xls), *.xls")
- If patch = False Then
- Dim E As Range, Rng As Range
- If TypeName(Selection) <> "Range" Then Exit Sub '¤£¬ORange(Àx¦s®æ)¤£©¹¤U°õ¦æµ{¦¡
- If Selection.Count = 1 And Selection(1) = "" Then Exit Sub '¿ï¾Ü1Àx¦s®æ¥B¬°ªÅ¥Õ®É¤£©¹¤U°õ¦æµ{¦¡
- For Each E In Selection.SpecialCells(xlCellTypeConstants)
- E.Value = UCase(Mid(E, 1, 1)) & LCase(Mid(E, 2)) 'Âà´«²Ä1Ó¦r¤¸¬°¤j¼g '¥þ³¡Âà´«¬°¤j¼g
- '**: Mid(E, 1, 1)-> ±q²Ä1Ó¦r¤¸°_Ū¤J¤@Ó¦r¤¸ªº¦r¦ê
- '**" Mid(E, 2) -> ±q²Ä2Ó¦r¤¸°_Ū¤J¥þ³¡ªº¦r¦ê
- Next
- Else
- With Workbooks.Open(patch)
- For Each E In .Sheets("¤u§@ªí1").Range("A:C")
- E.Value = UCase(Mid(E, 1, 1)) & LCase(Mid(E, 2)) 'Âà´«²Ä1Ó¦r¤¸¬°¤j¼g
- Next
- End With
- End If
- End Sub
½Æ»s¥N½X |
|