返回列表 上一主題 發帖

有關VBA語法的問題

有關VBA語法的問題

程式如下:
Dim Lastrow7 As Integer
Dim Value As String
Lastrow7 = 工作表5.[L65536].End(xlUp).Row
Value = UserForm1.ComboBox16
With Worksheets("工作表1")
  Dim C As Range
  Set C = .Columns(12).Find(Value, lookat:=xlWhole)
   If C Is Nothing Then MsgBox "查無此字串" Else MsgBox "搜尋字串位置" & C.Address
End With
奇怪的是Value單純的是test,1234就找得到
但是如果字元多了一個"~",就找不到。
請問這是怎麼一回事??

太感謝了!!這樣就可以了!!

TOP

        靜思自在 : 人要知福、惜福、再造福。
返回列表 上一主題