|
Set VBExcelbook = VBExcel.Workbooks.Open(App.Path & "\sample\sample.xls")
VBExcel.Visible = True
Dim i As Variant, r As Variant, rrr As Variant
Set rrr = CreateObject("Scripting.FileSystemObject")
Set r = rrr.getFolder(App.Path)
Dim j As Integer
j = 0
For Each i In r.Files
If Mid(i.Name, Len(i.Name) - 3) = ".xls" And Mid(i.Name, 1, 2) <> "~$" Then
j = j + 1
Dim xlapp As Excel.Application
Dim xlbook As Excel.Workbook
Dim xlsheet As Excel.Worksheet
Dim appexcel As Object
Set xlapp = CreateObject("excel.application")
Set xlbook = xlapp.Workbooks.Open(App.Path & "\" & i.Name)
xlapp.Visible = False
|
|