ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   OPEN WORKBOOK (https://www.excelbanter.com/excel-programming/442575-open-workbook.html)

FIRSTROUNDKO via OfficeKB.com

OPEN WORKBOOK
 
Hi,

have a workbook abc****.xls in c:\myfolder\

I want to open it

**** is of variable length

I think I need to use something like

Workbooks.Open Filename:= c:\myfolder\

or maybe should I call the abc****.xls to a cell first

Thanks in advance

--
Message posted via http://www.officekb.com


joel[_979_]

OPEN WORKBOOK
 

FName = dir("c:\myfolder\*.xls")
set bk = Workbooks.Open( Filename:= FName)


--
joel
------------------------------------------------------------------------
joel's Profile: http://www.thecodecage.com/forumz/member.php?u=229
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=202762

http://www.thecodecage.com/forumz



All times are GMT +1. The time now is 05:59 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com