D
DS
Afternoon all,
I'm hitting a slight problem trying to get the ShellAndWait command running,
using the example on Ron DeBruin's site at: http://www.rondebruin.nl/zip.htm.
I've simply copied & pasted the code relating to "Zip The ActiveWorkbook" as
a starting point.
Specifically, I'm getting a "Sub Or Function Not Defined" error on the line
ShellAndWait ShellStr, vbHide
I'm wondering whether a specific required reference is not active, or
whether this function isn't available in this Excel version (2k). Replacing
ShellAndWait with Shell works ok, but I don't want VBA to continue running
until the zip operation is complete. Yes, I know I could simply insert an
Application.Wait, but this is gonna niggle at me until I know what's going on!
Any ideas appreciated, cheers!
I'm hitting a slight problem trying to get the ShellAndWait command running,
using the example on Ron DeBruin's site at: http://www.rondebruin.nl/zip.htm.
I've simply copied & pasted the code relating to "Zip The ActiveWorkbook" as
a starting point.
Specifically, I'm getting a "Sub Or Function Not Defined" error on the line
ShellAndWait ShellStr, vbHide
I'm wondering whether a specific required reference is not active, or
whether this function isn't available in this Excel version (2k). Replacing
ShellAndWait with Shell works ok, but I don't want VBA to continue running
until the zip operation is complete. Yes, I know I could simply insert an
Application.Wait, but this is gonna niggle at me until I know what's going on!
Any ideas appreciated, cheers!