Hi folks,
This afternoon one of my macro's went inexplicably wrong, having previously worked like a dream. I now get the error:
'Compile Error: Expected function or Variable.'
The line it highlights is:
The macro I'm using is Bob Philips' 'Browse Sheets' Macro to quickly choose which worksheet to go to.
It had been working fine, until I tried to use it as part of user-form.
When I double click a command button on said user form, this function was supposed to run: The code for the macro is as follows:
It appears as follows in the code for the command button I'm using:
What is annoying is that if I open a new excel book, paste the macro code into a new module in that book and run it there, it works perfectly - but it just won't work in the workbook I need it to work in!
I'd be truly grateful for any help or advice.
Bookmarks