Is there a way to open a workbook in vba if the path length is greater than 255 characters?
Is there a way to open a workbook in vba if the path length is greater than 255 characters?
Try changing directory to split the path length
[VBA]
Sub LongPath()
ChDir "C:\AAA"
ChDir CurDir & "\BBB"
Workbooks.Open "Test.xls"
End Sub
[/VBA]
MVP (Excel 2008-2010)
Post a workbook with sample data and layout if you want a quicker solution.
To help indent your macros try Smart Indent
Please remember to mark threads 'Solved'