Dim PathName As String
Dim SheetName() As String
Dim ConfigName As String
Dim SplittedPathName() As String
Dim ModelName As String
Sub main()
Set swApp = Application.SldWorks
Set drawing = swApp.ActiveDoc
If drawing.GetType <> 3 Then Exit Sub
SheetName = drawing.GetSheetNames
SheetCount = drawing.GetSheetCount
For i = 0 To SheetCount - 1
drawing.ActivateSheet SheetName(i)
Set swSheet = drawing.GetCurrentSheet
swSheet.SetName "$$$$$$" & i
Next
SheetName = drawing.GetSheetNames
drawing.ActivateSheet SheetName(0)
End Sub
我是想把$$$$$$换为“图纸”2个字