ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

½Ð°Ý³o­Ó¸Ó«ç»ò­×§ï???

½Ð°Ý³o­Ó¸Ó«ç»ò­×§ï???

¥»©«³Ì«á¥Ñ color790 ©ó 2011-2-1 23:21 ½s¿è

½Ð°Ý¬õ¦âªº³¡¥÷¸Ó«ç»ò­×§ï?
¥D­n¬O¥´¶}¬Y­ÓWORDÀÉ,µM«á¦b²Ä¤@­Óªí®æªº²Ä¤@®æ¤º®e·|ª½±µ½Æ»sEXCELÀɪº[B2]Àx¦s®æ
Sub transform()
Dim xlApp As Object
Set xlApp = CreateObject("word.application")
With xlApp
xlApp.Visible = True
xlApp.Documents.Open "C:\Users\Desktop\Doc1.docx"
xlApp.ThisDocument.Table(1).cell(1, 1) = ActiveSheet.Range("B2").Value
End With
End Sub
ªì¾ÇªÌcolor

½Ð°Ý¬õ¦âªº³¡¥÷¸Ó«ç»ò­×§ï?
¥D­n¬O¥´¶}¬Y­ÓWORDÀÉ,µM«á¦b²Ä¤@­Óªí®æªº²Ä¤@®æ¤º®e·|ª½±µ½Æ»sEXCELÀɪºÀx¦s®æ ...
color790 µoªí©ó 2011-2-1 15:18



Sub transform()
Dim xlApp As Object
Set xlApp = CreateObject("word.application")
With xlApp
xlApp.Visible = True
xlApp.Documents.Open "C:\temp\Doc1.docx"
xlApp.activedocument.Tables(1).cell(1, 1).Select
xlApp.Selection.TypeText ActiveSheet.Range("B2").Value
End With
End Sub
À´±oµo°Ý,µª®×´N·|¦b¨ä¤¤

¤µ¤éの¤@¬íは  ©ú¤éにない
http://kimbalko-chi.blogspot.com
http://kimbalko.blogspot.com

TOP

·P®¦·P®¦~¤U§«ô¨Ó¤½¥q¥Î¥Î¬Ý~
ªì¾ÇªÌcolor

TOP

Sub transform()
Dim xlApp As Object
Set xlApp = CreateObject("word.application")
With xlApp ...
kimbal µoªí©ó 2011-2-5 00:06


½Ð°Ý.....Typetext«á­±¬O§_¦³"=" ÁÙ¬O¨ä¥LªºªF¦è?,  ¦n¹³¸Õ¤£¤Ó¥X¨Ó:dizzy:
xlApp.activedocument.Tables(1).cell(1, 1).Select
xlApp.Selection.TypeText ActiveSheet.Range("B2").Value
ªì¾ÇªÌcolor

TOP

¦^´_ 4# color790


    xlApp.ActiveDocument.Tables(1).Cell(1, 1).Range.Text = ActiveSheet.Range("B2").Value
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

·P®¦·P®¦~~~
ªì¾ÇªÌcolor

TOP

¦^´_ 6# color790

xlApp.activedocument.Tables(1).cell(3, 4) = Date
½Ð°Ý³oÃ䪺®æ¦¡«ç»ò§ï¦¨ yyyy-mm-dd
ªì¾ÇªÌcolor

TOP

xlApp.ActiveDocument.Tables(1).Cell(3, 4).Range.Text = Format(Date, "yyyy-mm-dd")
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

^^ ÁÂÁª©¥D~
ªì¾ÇªÌcolor

TOP

        ÀR«ä¦Û¦b : ¤f»¡¤@¥y¦n¸Ü¡A¦p¤f¥X½¬ªá¡F¤f»¡¤@¥yÃa¸Ü¦p¤f¦R¬r³D¡C
ªð¦^¦Cªí ¤W¤@¥DÃD