Dim oXL As Object Dim wkb As Object Dim wks As Object Set oXL = CreateObject("excel.application") Dim strPathFile As String, strFile As String, strPath As String Dim strTable As String, strBrowseMsg As String strBrowseMsg = "Select the folder that contains the Data Call EXCEL files:" strPath = BrowseFolder(strBrowseMsg) If strPath = "" Then MsgBox "No folder was selected.", vbOK, "No Selection" Exit Sub End If strFile = Dir(strPath & "\*.xls*") Do While Len(strFile) > 0 strPathFile = strPath & "\" & strFile Set wkb = oXL.Workbooks.Open("\\hhhfs02.itsc.hhs-itsc.local\financedata\Policy Data Call Database\Import Files\*.xlsx") wkb.Worksheets("Data Call").Range("AC:HFD").Delete wkb.Close True oXL.Quit Set oXL = Nothing strFile = Dir() Loop End Sub
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE