2016-04-19 7 views
0

本文には*、**、ユーザーフォームにはいくつかのチェックボックスが付いています。 **私は1,2,3と*交換したい返信したいとき本文は*で置き換えます。

* text1 
** text2 
... 
* text24 
** text25 

....および削除:私はいくつかのチェックボックスを選択した場合、それは電子メールの本文に入れます。ありがとうございました。

答えて

2

1,2,3の意味はよくわかりませんが、このようなものは...?

Function RemoveStars(strInput As String) As String 

    Dim intCount As Integer 
    intCount = 1 
    Stop 
    RemoveStars = Replace(strInput, Chr(42) & Chr(42), "") 
    Do While InStr(RemoveStars, Chr(42)) <> 0 
     RemoveStars = Replace(RemoveStars, Chr(42), intCount, 1, 1) 
     intCount = intCount + 1 
    Loop 

End Function 
+0

ありがとうございました。 – wittman

関連する問題