0
Private Sub cmdplay_click()
LblGameName.Caption = "Hello! And welcome to Unicorn Adventure Extream! Are you excited?"
CmdExit.Caption = "no"
CmdPlay.Caption = "yes"
If CmdPlay = True Then
LblGameName.Caption = "As you should be!! Welcome to Unicopitopia! Will you please enjoy your stay?"
ElseIf CmdExit = True Then
LblGameName.Caption = "You have angered the unicorn!! She ripped out your heart and devoured it! Bad Luck! Much Blood!"
End If
End Sub
我不明白爲什麼我的標籤沒有改變,當我按是或否?VBA簡單代碼
在你的cmdPlay子句中,你引用了「lblnamegame」。你的意思是「LblGameName」? – Tmdean 2014-11-24 21:21:13
哦..哎呀!是!謝謝!我已經搞亂了很多,它仍然沒有工作後,我已經修復,雖然 – Sphyrna 2014-11-24 21:23:59
沒有更多的細節很難解決問題。您應該描述表格的外觀,您正在做什麼,您期望發生什麼以及實際發生的情況。否則,我們能做的最好的就是尋找錯別字。 – Tmdean 2014-11-24 21:34:52