|
こんにちは。
> Dim xlApp As Excel.Application
> Dim xlBk As Excel.Workbook
> Dim xlSht As Excel.Worksheet
>
> Set xlApp = CreateObject("Excel.Application")
>
> ' ブックOpen
> Set xlBk = xlApp.Workbooks.Open("C:\AAA\契約書作成印刷.xls")
> Set xlSht = xlBk.Worksheets("データ呼出")
> xlApp.Visible = True
>
> Set xlApp = Nothing
> Set xlBk = Nothing
> Set xlSht = Nothing
Dim xlApp As New Excel.Application
xlApp.Workbooks.Open "C:\AAA\契約書作成印刷.xls"
xlApp.Worksheets("データ呼出").Activate
xlApp.Visible = True
xlApp.UserControl = True
Set xlApp = Nothing
では、如何ですか。
|
|