Patricia0923
New Member
- Joined
- Mar 18, 2014
- Messages
- 25
Hi,
I need to extract data from files that are currently located down this path
c:\Users\Owner\Desktop\R2D2\Data\NS25465\labor.xls
How do I write code to find and open "labor.xls"?
Can I use ChDir Left(ThisWorkbook.Path, InStr(1, ThisWorkbook.Path, ":"))
ChDir ThisWorkbook.Path
ChDir "..\..\data"
Thank you!
I need to extract data from files that are currently located down this path
c:\Users\Owner\Desktop\R2D2\Data\NS25465\labor.xls
How do I write code to find and open "labor.xls"?
Can I use ChDir Left(ThisWorkbook.Path, InStr(1, ThisWorkbook.Path, ":"))
ChDir ThisWorkbook.Path
ChDir "..\..\data"
Thank you!