Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
In VBA I have this line Workbooks.Open sAFMAPathName & sFileName when in auto it gives a error message 'Unable to read file' when I single step (F8), it works fine. This section of the code comes from another excel VBA code block which works fine, if a bit slow. Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If it works fine when stepping through then most likely there is some delay
in creating or releasing the file you're trying to open. Where does it come from ? Tim "MarkS" wrote in message ... Hi, In VBA I have this line Workbooks.Open sAFMAPathName & sFileName when in auto it gives a error message 'Unable to read file' when I single step (F8), it works fine. This section of the code comes from another excel VBA code block which works fine, if a bit slow. Thanks |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Tim,
from a remote server, but some work fine and others don't MarkS "Tim Williams" wrote: If it works fine when stepping through then most likely there is some delay in creating or releasing the file you're trying to open. Where does it come from ? Tim "MarkS" wrote in message ... Hi, In VBA I have this line Workbooks.Open sAFMAPathName & sFileName when in auto it gives a error message 'Unable to read file' when I single step (F8), it works fine. This section of the code comes from another excel VBA code block which works fine, if a bit slow. Thanks |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Do the files which give problems fail consistently ?
Tim "MarkS" wrote in message ... Hi Tim, from a remote server, but some work fine and others don't MarkS "Tim Williams" wrote: If it works fine when stepping through then most likely there is some delay in creating or releasing the file you're trying to open. Where does it come from ? Tim "MarkS" wrote in message ... Hi, In VBA I have this line Workbooks.Open sAFMAPathName & sFileName when in auto it gives a error message 'Unable to read file' when I single step (F8), it works fine. This section of the code comes from another excel VBA code block which works fine, if a bit slow. Thanks |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Yes Its always the same ones but opening them and resaving them doesn't help
"Tim Williams" wrote: Do the files which give problems fail consistently ? Tim "MarkS" wrote in message ... Hi Tim, from a remote server, but some work fine and others don't MarkS "Tim Williams" wrote: If it works fine when stepping through then most likely there is some delay in creating or releasing the file you're trying to open. Where does it come from ? Tim "MarkS" wrote in message ... Hi, In VBA I have this line Workbooks.Open sAFMAPathName & sFileName when in auto it gives a error message 'Unable to read file' when I single step (F8), it works fine. This section of the code comes from another excel VBA code block which works fine, if a bit slow. Thanks |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
No thats no right, The first one always loads fine and the next one has the
problem "MarkS" wrote: Yes Its always the same ones but opening them and resaving them doesn't help "Tim Williams" wrote: Do the files which give problems fail consistently ? Tim "MarkS" wrote in message ... Hi Tim, from a remote server, but some work fine and others don't MarkS "Tim Williams" wrote: If it works fine when stepping through then most likely there is some delay in creating or releasing the file you're trying to open. Where does it come from ? Tim "MarkS" wrote in message ... Hi, In VBA I have this line Workbooks.Open sAFMAPathName & sFileName when in auto it gives a error message 'Unable to read file' when I single step (F8), it works fine. This section of the code comes from another excel VBA code block which works fine, if a bit slow. Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Unable to read file | Excel Discussion (Misc queries) | |||
Unable to Read File | Links and Linking in Excel | |||
Unable to Read File | Excel Discussion (Misc queries) | |||
unable to read file | Excel Discussion (Misc queries) | |||
"Unable to read file" error message when opening a Excel file that contains a PivotTable report. | Charts and Charting in Excel |