最簡單咩都唔好諗
一開始你initialise 左 Response = "" 先
之後就做個find keyword, if found, Response = whatever
最後如果唔係你個表啲keyword, response 是咪仲會係 null?
咁你咪加句 if response = vbnullstring, response ="Please tell me more" 囉
if 用嚟match keywords in the table
唔係你個表嘅keywords用else
sor 1999
唔明
用if...else...
if 係比你match keyword
<em>eg. 表有A, response 會出B
我打A 佢出B為match到 </em>
else (keyword not found)
response = "Please tell me more"
<em>else =假若keyword唔係個表入面,執行...
eg table 有 A,respone B
我打C 嘅時候佢就會出"Please tell me more"
而keyword唔洗set =""</em>
但佢assignment powerpoint 又話要用If......Then
Response = .....
你咪if LEFT(User.Value, Keyword.Cell) > 0 then response = Cell(response 果格).Value
仲有最後清0應該點做?
清咩0?
利申:無讀過comp Q
個worksheet 有counter column count 住個keyword出企幾多次,點樣可以用open event workbook 清0(每次開excel都可以變番0咁)