|
楼主 |
发表于 2018-8-19 19:10
|
显示全部楼层
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
本帖最后由 feel5114 于 2018-8-19 19:35 编辑
我想问下,如果我想加入个第三列代码这样写的话对不对的
Sub RenameWorksheets3()
For i = 29 To 43 'Worksheets.Count
Worksheets(i).Name = Sheet1.Cells(i - 28, 7).Value
Sheet1.Hyperlinks.Add Cells(i - 28, 8), ThisWorkbook.Path & "\" & ThisWorkbook.Name, Sheet1.Cells(i - 28, 7) & "!A1", , "点击进入表格"
Application.DisplayAlerts = True
Next
With Range("H1:H14").Font
.Name = "宋体"
.Size = 12
.Bold = True
End With
MsgBox "修改完成!"
End Sub
|
|