我想的Excel 2013狀態欄寫的,在文檔的Excel的開放,所以我必須在的ThisWorkbook puted下面的代碼:Excel2013無法在狀態欄中寫入?
Option Explicit
Private WithEvents app As Excel.Application
Private Sub app_WorkbookOpen(ByVal Wb As Workbook)
app.DisplayStatusBar = True
If UCase$(Wb.Path) = "C:\GED\TEMP" Then
app.StatusBar = "ok"
Else
app.StatusBar = "ko"
EndIF
End Sub
Private Sub Workbook_Open()
Set app = Application
End Sub
,但我有_Application的方法狀態欄總是錯誤。它總是假的我不知道爲什麼請任何想法或幫助。
把'msgbox Wb.Path'放在行'If UCase ...'之前......你看到了什麼? – KekuSemau 2014-10-12 13:39:11
我看到「C:\ GED \ TEMP」 – 2014-10-12 13:57:50
KekuSemau當我從互聯網下載EXCEL FILE時,msgbox Wb.Path爲空,所以?????請幫助 – 2014-10-12 15:33:00