excel - 下载C盘文件名到指定文件夹
解决方案
Sub test()
Set fso = CreateObject("scripting.filesystemobject")
Dim rng As Range, cell As Range
Set rng = Range("B2:B4") ' Replace with the range of your source file links
For Each cell In rng
fso.MoveFile Source:=cell.Value, Destination:="C:\dev\test\a\" ' replace with destination folder as required.
Next cell
End Sub
推荐阅读
- javascript - Onchange 值在反应中没有改变
- reactjs - webpack捆绑的react中如何完全可视化组件堆栈跟踪?
- r - 如何通过简单的代码组合多个小标题?
- javascript - 身份验证令牌登录到邮递员的集合中而不是注销用户
- spring-boot - 如何在没有承载令牌的情况下重定向 oauth 资源服务器请求以在 spring-boot 应用程序中登录?
- angular - Angular - 元素隐式具有“任何”类型,因为类型“AbstractControl”没有索引签名
- mysql - 聚合查询返回 1,其中预期为 0
- java - 为什么我自己的主题不适用于 vaadin 14
- material-ui - 有条件地防止在 DataGrid 中重新排序
- python - ValueError:形状 (100, 1) 和 (100, 28, 19, 1, 1) 不兼容