- ©«¤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
|
¦^´_ 1# hungrn
ªí1,ªí2 ¥Î¹q«×¼Æ(«×) »Ý§ï¦¨ ¥Î¹q«×¼Æ
ÁÙ¦³¨ä¥L¼gªk,¤]½Ð¤j®aµoªí
- Option Explicit
- Sub Ex()
- Dim i As Variant
- For Each i In Names
- i.Delete
- Next
- Worksheets("¤u§@1").UsedRange.CreateNames True, False
- 'Range.CreateNames ¤èªk¦b«ü©w½d³ò¤¤¨Ì¾Ú¤u§@ªí¤¤ªº¤å¦r¼ÐÅҫإߦWºÙ
- With Worksheets("¤u§@2").UsedRange
- For i = 1 To .Columns.Count
- If .Cells(1, i) <> "" Then
- With Range(.Cells(1, i).Value) '¤u§@ªí¤¤ªº¤å¦r¼ÐÅҫإߦWºÙ
- Cells(2, i).Resize(.Rows.Count) = .Value
- End With
- End If
- Next
- End With
- End Sub
½Æ»s¥N½X |
|