I keep getting the following error, when I run my macro:
Runtime error '1004'
Unable to get countif property of the worksheetfunction class
The macro searches all sheets for external links, and records unique entries the linklist worksheet. (original function from an online example I cant recall where).
It works great where there is only 1 link in a cell. However it trips up when there are for instance link+link in the cell formula. It dies at the countif line with the above error.
Does anyone have any idea why? While I'd prefer to leave the countif line in to remove duplicate entries, there wont be too many of these types of values in the workbooks anyway, so I tried to have it just skip the 'check if already listed' part if this error occured and just add the link to the list anyway (to be sorted out manually later) but i cant seem to make an error handler that works either.
Ideas experts?!
Bookmarks