G
Guest
Hi there.
I want to open a file that has a chaging name. Another words, the file is
written over on a random basis and the beginning part of the file name is a
date ref that changes.
I want to use an * within the name, but can't get it to work. You can see
what I've tried below.
Can anyone help?
If fIsAppRunning("Excel") Then
Set objXL = GetObject(, "Excel.Application")
boolXL = False
Else
Set objXL = CreateObject("Excel.Application")
boolXL = True
End If
TestFile = "C:\VCCT Training DB\SAP Roles\* Role_Catalog_Master.xls"
Set objActiveWkb = objXL.Workbooks.Open(TestFile)
Set objActiveWkb = objXL.Application.ActiveWorkbook
objXL.Visible = True
Thanks in advance,
Clint
I want to open a file that has a chaging name. Another words, the file is
written over on a random basis and the beginning part of the file name is a
date ref that changes.
I want to use an * within the name, but can't get it to work. You can see
what I've tried below.
Can anyone help?
If fIsAppRunning("Excel") Then
Set objXL = GetObject(, "Excel.Application")
boolXL = False
Else
Set objXL = CreateObject("Excel.Application")
boolXL = True
End If
TestFile = "C:\VCCT Training DB\SAP Roles\* Role_Catalog_Master.xls"
Set objActiveWkb = objXL.Workbooks.Open(TestFile)
Set objActiveWkb = objXL.Application.ActiveWorkbook
objXL.Visible = True
Thanks in advance,
Clint