N
Naz
Hi all
I have a Word macro to compile a report by opening Excel worksheets and
copying pre-defined ranges to the document. I use a standard Dell machine
with Office XP locally installed and it works fine.
However, my colleague who actually need to run the report use terminal
machines, i.e. Office XP runing on the server.
When they run the report it gets half way through and throws up this error
c:\exceldoc\ caused a problem. Command failed.
On my PC i only get this problem if i run the macro more than once. In which
case i restart Word and it will work.
So to me it appears as if it is either a clipboard or memory problem.
I have tried to find ways of clearing the clipboard using VBA but apparently
its not possible. I found this snippet of could which is suppose to be the
equivalent of click the clear clipboard button, but have no idea how to use
it. I keep get block not defined type of errors.
Application.CommandBars.FindControl(ID:=3634).Execute
All help is appreciated.
__________________
Naz
London
I have a Word macro to compile a report by opening Excel worksheets and
copying pre-defined ranges to the document. I use a standard Dell machine
with Office XP locally installed and it works fine.
However, my colleague who actually need to run the report use terminal
machines, i.e. Office XP runing on the server.
When they run the report it gets half way through and throws up this error
c:\exceldoc\ caused a problem. Command failed.
On my PC i only get this problem if i run the macro more than once. In which
case i restart Word and it will work.
So to me it appears as if it is either a clipboard or memory problem.
I have tried to find ways of clearing the clipboard using VBA but apparently
its not possible. I found this snippet of could which is suppose to be the
equivalent of click the clear clipboard button, but have no idea how to use
it. I keep get block not defined type of errors.
Application.CommandBars.FindControl(ID:=3634).Execute
All help is appreciated.
__________________
Naz
London