![](/img/trans.png)
[英]How to remove the last character of a word in a text string and insert to another cell using VBA in Excel?
[英]Remove last character in a cell using VBA
我在一個單元格中有一個值,如下所示
( Abc','def','hij', 'klm',)
我需要將這些值作為參數傳遞到 SQL 查詢中。 為此,我需要在開頭添加一個額外的 ',使其讀作 'Abc' 並刪除 m 之后的最后一個。
我試過Right(C2,LEN(C2)-(LEN(C2)-1)))
但是上面是刪除所有我的,我只需要最后一個,就可以刪除
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.