[HKUST] 科大討論區 - 炒左mid term 女友話要分手 (14)

1001 回覆
7 Like 6 Dislike
2017-03-26 19:19:19

最簡單咩都唔好諗
一開始你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咁)
2017-03-26 19:21:20

唔明

用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咁)

Sub Open_Workbook
入面加個for loop
2017-03-26 19:30:12

Po上黎望下

巴打請教下nothing is found 個part,

If Keyword = "" Then
Response = "Please tell me more"

點解無野出既?

最簡單咩都唔好諗
一開始你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
eg. 表有A, response 會出B
我打A 佢出B為match到

else (keyword not found)
response = "Please tell me more"
else =假若keyword唔係個表入面,執行...
eg table 有 A,respone B
我打C 嘅時候佢就會出"Please tell me more"
而keyword唔洗set =""

但佢assignment powerpoint 又話要用If......Then
Response = .....

你咪if LEFT(User.Value, Keyword.Cell) > 0 then response = Cell(response 果格).Value

仲有最後清0應該點做?



咁樣有bug
2017-03-26 19:33:38

唔明

用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應該點做?



咁樣有bug


Done
2017-03-26 19:52:10
compQ 啲assignment 愈來愈煩嘅
2017-03-26 19:53:15
compQ 啲assignment 愈來愈煩嘅

成班走曬堂做deadline fighter
2017-03-26 20:04:09
正呀 聽日返學
2017-03-26 20:04:23
正呀 聽日返學

不了
2017-03-26 20:16:51
正呀 聽日返學

不了

又要上huma
2017-03-26 20:17:51
正呀 聽日返學

不了

又要上huma

930 labu
2017-03-26 20:18:54
compQ 啲assignment 愈來愈煩嘅

成班走曬堂做deadline fighter

最抵死個個sem有啲唔同
抄都無得抄
2017-03-26 20:20:46
( Show Blocked User - 潘俊耀 )

真係好煩 唔想知m記點餐歌個個人係點
2017-03-26 20:31:27
又要返學屌你老母
2017-03-26 20:32:26
又要返學屌你老母

走堂囉
2017-03-26 20:37:21
( Show Blocked User - 潘俊耀 )

真係好煩 唔想知m記點餐歌個個人係點

其實咩黎?
2017-03-26 20:38:42
( Show Blocked User - 潘俊耀 )

真係好煩 唔想知m記點餐歌個個人係點

其實咩黎?

https://youtu.be/gRB5WJKH-tE
2017-03-26 20:52:07
( Show Blocked User - 潘俊耀 )

真係好煩 唔想知m記點餐歌個個人係點

其實咩黎?

[rl]https://youtu.be/gRB5WJKH-tE[/url]

貼kpop都好過貼呢d啦
2017-03-26 21:24:06
( Show Blocked User - 潘俊耀 )

真係好煩 唔想知m記點餐歌個個人係點

其實咩黎?

[rl]https://youtu.be/gRB5WJKH-tE[/url]

貼kpop都好過貼呢d啦

見到條柒頭就唔開胃
kpop起馬有得睇囡囡
2017-03-26 21:32:09
對唔住






睇翻我既相啦
2017-03-26 21:45:56
對唔住






睇翻我既相啦

2017-03-26 22:31:03

但佢assignment powerpoint 又話要用If......Then
Response = .....

你咪if LEFT(User.Value, Keyword.Cell) > 0 then response = Cell(response 果格).Value

仲有最後清0應該點做?



咁樣有bug


Done

row = row + 1呢 冇左會瘋狂loop到hang
For應該唔得
因為marking 好陰 佢話會轉個table
新既content有14行或更多就pk

我兩樣野 冇row = row + 1錯過
一開頭用for 都錯過

不過依家講都冇用了

連for loop 同while loop 都唔識分 ?
吹水台自選台熱 門最 新手機台時事台政事台World體育台娛樂台動漫台Apps台遊戲台影視台講故台健康台感情台家庭台潮流台美容台上班台財經台房屋台飲食台旅遊台學術台校園台汽車台音樂台創意台硬件台電器台攝影台玩具台寵物台軟件台活動台電訊台直播台站務台黑 洞