Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/excel/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/vba/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Excel 寻找Strright的VBA等效项_Excel_Vba_Concatenation_Lotusscript - Fatal编程技术网

Excel 寻找Strright的VBA等效项

Excel 寻找Strright的VBA等效项,excel,vba,concatenation,lotusscript,Excel,Vba,Concatenation,Lotusscript,正在寻找LotusScript的Strright的VBA等效项。该代码段用于将错误消息连接到一个单元格中 你可以使用Join 或者使用此模式: If IsError = True Then Dim sep tmpMsg = "" For Each v In errormsg tmpMsg = tmpMsg + sep + v sep = "," Next v Cells(Row, 8).Value = tmpMsg End If 仪表和

正在寻找LotusScript的Strright的VBA等效项。该代码段用于将错误消息连接到一个单元格中

你可以使用Join

或者使用此模式:

If IsError = True Then
   Dim sep
   tmpMsg = ""
   For Each v In errormsg
       tmpMsg = tmpMsg + sep + v
       sep = ","
   Next v
   Cells(Row, 8).Value = tmpMsg
End If
仪表和仪表
If IsError = True Then
   Cells(Row, 8).Value = Join(errormsg, ",")
End If
If IsError = True Then
   Dim sep
   tmpMsg = ""
   For Each v In errormsg
       tmpMsg = tmpMsg + sep + v
       sep = ","
   Next v
   Cells(Row, 8).Value = tmpMsg
End If