- VB,VBA
- 2010-03-19 - 更新:2014-06-05
'# Excel作成 Public Sub mkExcel_withInvoice() On Error GoTo Exception Dim xl As Object Dim xl2 As Object Dim TempPath As String Dim Template As String Dim SavePath As String Dim FileName As String TempPath = "C:\" Template = TempPath & "雛型.xls" SavePath = Environ("USERPROFILE") & "\デスクトップ\" FileName = SavePath & "シートを別ファイルにコピー.xls" FileCopy Template, FileName Set xl = GetObject(FileName, "Excel.Sheet") xl.Parent.Windows(1).Visible = True
7,556 views