Hi,
I'm not very competent with VBA and am having trouble with a script that creates hyperlinks to other worksheets in the workbook.
The worksheet names are dictated externally and occasionally contain white spaces, which means that the hyperlinks that my VBA creates don't work for those tabs. I would like to write a line or two of code to replace all of the whitespaces in all of the worksheet names with underscores, which will solve the hyperlink issue.
Does anyone know how I can do this?
Many thanks for your time
David
I'm not very competent with VBA and am having trouble with a script that creates hyperlinks to other worksheets in the workbook.
The worksheet names are dictated externally and occasionally contain white spaces, which means that the hyperlinks that my VBA creates don't work for those tabs. I would like to write a line or two of code to replace all of the whitespaces in all of the worksheet names with underscores, which will solve the hyperlink issue.
Does anyone know how I can do this?
Many thanks for your time
David