I have a workbook that currently updates from other documents (owned by other people) in the following way:
This works fine except for when the version ID of the file changes. The document server automatically adds 'V2' etc to the file name, and unfortunately this causes the macro to fail because I have an absolute file name reference in it.
Is there a way to throw a variable in there so that it ignores '_V2' etc in the file name? Or am I simply going to have to modify the macro every time it fails to run? (I can live with that, I'd just prefer not to have to.)
Any suggestions will be appreciated.
With thanks,
Daria.
- Click hyperlink to open the other workbook.
- Macro (on a button) copies contents of that workbook to my document.
- Macro closes other workbook.
This works fine except for when the version ID of the file changes. The document server automatically adds 'V2' etc to the file name, and unfortunately this causes the macro to fail because I have an absolute file name reference in it.
Is there a way to throw a variable in there so that it ignores '_V2' etc in the file name? Or am I simply going to have to modify the macro every time it fails to run? (I can live with that, I'd just prefer not to have to.)
Any suggestions will be appreciated.
With thanks,
Daria.