Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次の文字列などを変更する必要があります153,154,155,156
153,154,155,156
に153**,**154**,**155**,**156
153**,**154**,**155**,**156
だから,に**,**
,
**,**
VBAでそれを行うにはどうすればよいですか?
良くはありませんが、異なります:
Sub SplitJoin() Debug.Print Join(Split("153,154,155,156", ","), "**,**") End Sub
これを試して:
Dim s as String s = "153,154,155,156" s = Replace(s, ",", "**,**")