我是用2000+vb6.0+sp5+office2000
想要寫個程式將excel的所有資料複製然後貼到word..
可是下面的語法會有錯誤勒
因為在Selection.Copy這一行..vb會說它不能複製勒.....
事實上也是沒有複製到的
MyWorkSheet.Select
  MyWorkSheet.Range("A1:B10").Select
  'myRange.Cells(1,1:start,3).Select
  'Cells.Select
  Selection.WholeStory
  Selection.Copy

Windows("test.doc").Activate
  Selection.MoveUp Unit:=wdScreen, Count:=6
  Selection.TypeParagraph
  Selection.Paste
  Selection.TypeParagraph
  Selection.MoveEnd
arrow
arrow
    全站熱搜

    vbqa 發表在 痞客邦 留言(1) 人氣()