用VBA可以做
https://www.zhihu.com/video/1235944404789673984
示例里的代码: