- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
        
|
¦^´_ 4# die78325
¸Õ¸Õ¬Ý- Option Explicit
- Sub Ex()
- Dim Ar(), ¦r¦ê As String, xi As Integer, xii As Integer, S As String, Rng As Range
- 'With Range("A1").CurrentRegion
- 'CurrentRegion ÄÝ©Ê ¶Ç¦^ Range ª«¥ó¡A¸Óª«¥ó¥Nªí¥Ø«eªº°Ï°ì¡C¥Ø«e°Ï°ì¬O«ü¥H¥ô·NªÅ¥Õ¦C¤ÎªÅ¥ÕÄ檺²Õ¦X¬°Ãä¬Éªº½d³ò¡C°ßŪ
- 'MsgBox .Address
- Set Rng = Sheet1.[a1]
- With Sheet1.Range(Rng.Address, Cells(Rng.End(xlDown).Row, Rng.End(xlToRight).Column).Address)
- MsgBox .Address(, , , 1, 1)
- Ar = .Value
- For xi = 1 To .Rows.Count
- For xii = 1 To .Columns.Count
- Ar(xi, xii) = IIf(.Cells(xi, xii) <> "", .Cells(xi, xii).Text, vbTab)
- Next
- Next
- For xi = 1 To UBound(Ar)
- S = Join(Application.Transpose(Application.Transpose(Application.Index(Ar, xi))), vbTab)
- ¦r¦ê = IIf(¦r¦ê = "", S & vbLf, ¦r¦ê & vbLf & S)
- Next
- MsgBox ¦r¦ê
- End With
- ' '
- '
-
- ' With .Document
- ' .getElementsByName("q11")(0).Value = ¦r¦ê ' §ä¨ìq11Äæ¦ì¶ñ¤J
- 'End With
- End Sub
½Æ»s¥N½X |
|