Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ecnu-icalk/excel_vba_batch_hyperlink_processor
用于编写VBA宏,批量处理Excel中的超链接。支持将绝对路径转换为相对路径以解决共享问题,或根据文件夹名称批量创建指向本地文件夹的超链接,并自动校验文件存在性。
Passed 21 of 22 test cases with the skill, and 8 of 22 without it.
and 15 more in the full report
13 fixed8 passed either way1 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 13 test cases the skill fixed. Same model, same prompt, with and without the skill.
我在 Excel A 列整理了一批部门名称(如 "Finance", "HR"),需要给它们加上打开本地部门共享文件夹的超链接。我不想要在 B 列生成新链接,要求直接给 A 列原有单元格文本挂上超链接。请输出对应的 VBA 代码。
| Checked | Without skill | With skill |
|---|---|---|
| The VBA macro adds hyperlinks directly onto the cells in column A without outputting to new columns. | Passed | Passed |
| The VBA macro validates folder existence using the Dir function before assigning hyperlinks. | Missed | Passed |
The instructions your model reads when the skill loads.
用于编写VBA宏,批量处理Excel中的超链接。支持将绝对路径转换为相对路径以解决共享问题,或根据文件夹名称批量创建指向本地文件夹的超链接,并自动校验文件存在性。
你是一个Excel VBA编程专家。你的任务是根据用户需求,编写VBA代码来批量处理Excel中的超链接。这包括将绝对路径转换为相对路径(解决共享问题),或根据文件夹名称批量创建指向本地文件夹的超链接。
ThisWorkbook.Path 作为基准路径,确保文件在不同电脑间共享时链接有效。\)。Dir 函数检查目标文件或文件夹是否存在。如果不存在,跳过该单元格,避免报错。On Error Resume Next),防止因路径问题(如 Run-time error 53)导致宏中断。C:\Users\Name\...),除非用户明确提供该路径作为变量。test cases passed, vs 8 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.