I think this is yours:
https://www.reddit.com/r/vba/comment...aworkbook_for/

another topic from reddit:
https://www.reddit.com/r/vba/comment...aworkbook_for/

you may consider Khazahk's reply:
The region map probably doesn’t have the “chartdata”property.
Check the object library and see what makes RegionMaps different. Could be a property called “RegionData” and the. Perhaps you can call the workbook from there.
You would simply throw in an If statement. If Charttype = regionmap then do it this way else do it the other way end if.
or you may include "On Error Resume Next" in your code and do the RegionMap stuff manually.