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

¦p¦ó±Nexcel Range(a1) ¶K¨ì word ¤W

¦p¦ó±Nexcel Range(a1) ¶K¨ì word ¤W

Private Sub CommandButton1_Click()
    Dim myTmpFName As String
    myTmpFName = ThisWorkbook.Path & Application.PathSeparator _
        & "test¤å¥ó.dot"
     With New Word.Application                     
                With .Documents.Add(myTmpFName)
                     .Unprotect
                     .Tables(2).Cell(1, 1).Range.Text =  Worksheets("sheet1").Range(a1)
                     .Protect wdAllowOnlyFormFields
               End With
         .Visible = True
      End With
   End Sub

¥Î     .Tables(2).Cell(1, 4).Range.Text =  Worksheets("sheet1").Range(a1)    ¶K¤£¤W
­n«ç»ò¼g ½Ð±Ð¦U¦ì°ª¤â  ÁÂÁÂ!
max

¸Õ¸Õ§â
                 .Tables(2).Cell(1, 1).Range.Text =  Worksheets("sheet1").Range(a1)
§ï¦¨
                 .Tables(2).Cell(1, 1).Range.Text =  Worksheets("sheet1").Range("a1")
À´±oµo°Ý,µª®×´N·|¦b¨ä¤¤

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

TOP

ÁÂÁ±z,¨S°ò¦ªºªì¾ÇªÌ,·PÁÂ!
max

TOP

        ÀR«ä¦Û¦b : ¦³®É·í«äµL®É­W¡A¦n¤Ñ­n¿n«B¨Ó³¡C
ªð¦^¦Cªí ¤W¤@¥DÃD