Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I want to open a file which has a filename ABC followed by anything. I thought this should have worked, but it is not. Set Wkb2 = Workbooks.Open(Filename:=foldername & "\ABC*") Can someone please correct it? Thanks in advance -- kingkdz ------------------------------------------------------------------------ kingkdz's Profile: http://www.excelforum.com/member.php...o&userid=35783 View this thread: http://www.excelforum.com/showthread...hreadid=555483 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
fName = Dir(foldername & "\ABC*")
if fName < "" Then Set Wkb2 = Workbooks.Open(Filename:=fName) End If -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "kingkdz" wrote in message ... I want to open a file which has a filename ABC followed by anything. I thought this should have worked, but it is not. Set Wkb2 = Workbooks.Open(Filename:=foldername & "\ABC*") Can someone please correct it? Thanks in advance -- kingkdz ------------------------------------------------------------------------ kingkdz's Profile: http://www.excelforum.com/member.php...o&userid=35783 View this thread: http://www.excelforum.com/showthread...hreadid=555483 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Thanks. But it is still saying file not found while the file it is quoting as not found is right there in the folder!! Weird. -- kingkdz ------------------------------------------------------------------------ kingkdz's Profile: http://www.excelforum.com/member.php...o&userid=35783 View this thread: http://www.excelforum.com/showthread...hreadid=555483 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Anyone has an alternative to this? Please -- kingkd ----------------------------------------------------------------------- kingkdz's Profile: http://www.excelforum.com/member.php...fo&userid=3578 View this thread: http://www.excelforum.com/showthread.php?threadid=55548 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Changing Opening folder | Excel Worksheet Functions | |||
opening an excel file opens a duplicate file of the same file | Excel Discussion (Misc queries) | |||
Opening a file that changes dates | Excel Programming | |||
Stop Excel from changing numbers to dates in CSV file | Excel Discussion (Misc queries) | |||
Opening Excel after changing settings and add-ins | Excel Discussion (Misc queries) |