![](/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.