- ©«¤l
- 472
- ¥DÃD
- 5
- ºëµØ
- 0
- ¿n¤À
- 485
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows
- ³nÅ骩¥»
- MS Office
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- »´ä
- µù¥U®É¶¡
- 2010-7-4
- ³Ì«áµn¿ý
- 2014-12-28
|
§Ú«üªº¬Oµ{¦¡°õ¦æ®É¡A
·|¦Û°ÊŪ¨ú«ü©w¸ô®|ªºwordÀɮסA
¨Ã§âÀÉ®×¼g¦^Excel¤W±¡A
¦ý§Ú§Æ±æ¥Lªº®æ¦¡¤£·|ÅÜ ...
kannas µoªí©ó 2010-12-1 01:05
¤@Ó«D±`Ãiªº¤èªk
copy and paste....- Sub dsa()
- Dim Wd 'Word
- Dim Dc '¤å¥ó
- Dim Tb '¤ºªí
- Dim i, j '©w¦ì
-
- Sheet1.UsedRange.EntireRow.Delete 'Excel Sheet1 ²Mªí
- Set Wd = CreateObject("Word.Application")
- Dim RgR As Range
- Set Dc = Wd.Documents.Open("C:\temp\1.DOC ") 'ÀɦW
- Wd.Visible = True
- With Wd.Selection.Find
- .Text = "^l"
- .Replacement.Text = " "
- End With
- Wd.Selection.Find.Execute Replace:=2
- With Wd.Selection.Find
- .Text = "^p"
- .Replacement.Text = " "
- End With
- Wd.Selection.Find.Execute Replace:=2
- For Each Tb In Dc.tables
- Set RgR = Sheet1.UsedRange.EntireRow.Offset(Sheet1.UsedRange.Rows.Count + 1, 0).Cells(1)
- Tb.Range.Copy
- RgR.Select
- ActiveSheet.PasteSpecial Format:="HTML"
- Next
-
- Wd.Quit
- End Sub
½Æ»s¥N½X |
|