I'm using two computers (both Windows 7 / Office 2010) at the office. The only difference is the older one is about a year older than the new one (and is a bit slower as well I guess).
I've written a macro that turns different kinds of price lists into a data table. I've written it using my newer machine and the code runs like a dream every time I run it on that machine. But when I'm running it from the older machine the code "bugs" on every line of code: Even when it's something simple like writing a "USD" into a cell.
The error message says something general (can't remember what exactly but there was no error code or whatsoever: "Automation Error" or something like that) and when I debug it, the code runs without an error: I can F8 the code through but it takes forever to run it that way (I put a stapler to press F8 when I left for a lunch today and it was still only half way through when I came back about an hour later. When I'm running the code from my newer computer it only takes about a minute to handle the same file from start to finish).
Could it be the older machine is too slow for the macro to run normally? And if so, how could I slow down the macro so that the older computer could keep up with the code?
I've written a macro that turns different kinds of price lists into a data table. I've written it using my newer machine and the code runs like a dream every time I run it on that machine. But when I'm running it from the older machine the code "bugs" on every line of code: Even when it's something simple like writing a "USD" into a cell.
The error message says something general (can't remember what exactly but there was no error code or whatsoever: "Automation Error" or something like that) and when I debug it, the code runs without an error: I can F8 the code through but it takes forever to run it that way (I put a stapler to press F8 when I left for a lunch today and it was still only half way through when I came back about an hour later. When I'm running the code from my newer computer it only takes about a minute to handle the same file from start to finish).
Could it be the older machine is too slow for the macro to run normally? And if so, how could I slow down the macro so that the older computer could keep up with the code?