Ok so I know I can run a function in another (open) workbook by doing the following line:
I'm also aware that if the workbook name contains spaces it must be wrapped in single quotes, thus:Please Login or Register to view this content.
My question is, how do I cope with it if the workbook name has spaces AND single quotes in the name? The single quote in the name effectively 'ends' the single quotes that are supposed to wrap the name, and I cannot see how I can escape the single quote character so that VBA realises it is part of the name, and not a delimiter.Please Login or Register to view this content.
Any ideas please? (Changing the target workbook name is not really an option as the workbooks are auto-named from elsewhere based on some input data).Please Login or Register to view this content.
Thanks!
Bookmarks