尝试执行以下子例程时出现错误
“运行时错误:9,下标超出范围”
它突出显示了第一个变量声明。起初我认为这是由于错误的数据类型,但改变和玩弄没有运气。
我也尝试了单元格和范围
Public vFolderPath As String
Public vCMFNewPath As String
Public vKBNewPath As String
Public vDPI As Integer
Private Sub SetGlobal()
Dim vGo As String
Dim vTemplateLocation As String
Dim vCMFFilename As String
Dim vKBFilename As String
Dim vDriver As String
Dim vPKG As String
vDPI = Workbooks("tools.xlsm").Sheets("SETTINGS").Range("B2").Value
vFolderPath = Workbooks("tools.xlsm").Sheets("SETTINGS").Range("B3").Value & "\"
有任何想法吗?