摘要:
Sub 按小三加粗文本重命名Word文档() ' 初始化集合(存储文件完整路径) Set fileList = New Collection ' 创建FSO对象 Set fso = CreateObject("Scripting.FileSystemObject") ' 定义Windows禁止的文件 阅读全文
摘要:
Sub 遍历所有Word文档并在文档的每个表格前插入分节符() ' 选择目标文件夹 Set fileDialog = Application.FileDialog(msoFileDialogFolderPicker) With fileDialog .Title = "请选择包含Word文档的文件夹 阅读全文
摘要:
Sub 调整包含特定文本的单元格所在的行高() For i = 1 To Range("a" & 1048576).End(xlUp).Row If Range("a" & i).Value Like "健康管理意见建议*" Then Range("a" & i).EntireRow.RowHeig 阅读全文
摘要:
Sub 向下填充() Set ws = ActiveSheet lastRow = ws.Cells(ws.Rows.Count, "C").End(xlUp).Row currentValue = ws.Range("C2").Value For i = 3 To lastRow If ws.Ce 阅读全文
摘要:
Sub 第一步插入空行() Set ws = ActiveSheet lastRow = ws.Cells(ws.Rows.Count, "A").End(xlUp).Row For i = lastRow To 3 Step -1 If ws.Cells(i, 1).Value <> ws.Cel 阅读全文
摘要:
Sub 设置为细框线() 边框类型数组 = Array(xlEdgeLeft, xlEdgeTop, xlEdgeBottom, _ xlEdgeRight, xlInsideVertical, xlInsideHorizontal) '遍历已使用区域的每个单元格 For Each 单元格 In A 阅读全文
摘要:
// 定义源文件夹和目标文件夹路径 var sourceFolderPath = "C:/Users/***/Desktop/拆分/"; var destFolderPath = "C:/Users/***/Desktop/结果/"; // 定义要填充的区域坐标 (x, y, 宽度, 高度) var 阅读全文