PDA

View Full Version : vba open workbooks



chungtinhlak
04-30-2009, 12:03 PM
Is there a way to open a workbook in vba if the path length is greater than 255 characters?

mdmackillop
05-27-2009, 12:29 PM
Try changing directory to split the path length

Sub LongPath()
ChDir "C:\AAA"
ChDir CurDir & "\BBB"
Workbooks.Open "Test.xls"
End Sub