Sub openwb()
Dim sb As String
Dim wb, dwb As Workbook
Dim ws As Worksheet
Set dwb = ActiveWorkbook
Set ws = dwb.Sheets("Home")
sb = ws.Range("F4").Value
Set wb = sb&"_Powertrain Metrics_" & (Format(Date, "YYYYMMDD") & ".xlsm")
Debug.Print wb
End Sub
在第 8 行,该部分"_Powertrain Metrics_"
突出显示并显示“编译错误:预期语句结束”。你能告诉我这里有什么问题吗?我使用的字符串有什么问题吗?