- 帖子
- 231
- 主題
- 55
- 精華
- 0
- 積分
- 293
- 點名
- 0
- 作業系統
- winxp
- 軟體版本
- office2003
- 閱讀權限
- 20
- 性別
- 男
- 來自
- KEELUNG
- 註冊時間
- 2010-7-24
- 最後登錄
- 2018-8-28
|
回復 4# GBKEE
版主大大您好:
感謝您的相助,此方法實在
太完美。唯獨有一語法小弟也
上網找了很多範例說明
Application.Caller之用法
卻仍無法領會,網路上的範例
也不知如何執行。
想 請版主大大能開示指點迷津
application caller之應用
及其含意為何?
版主語法如下:
ActionShape = .Shapes(Application.Caller).Name '執行此程式的按鈕名稱
網路上的範例:
Function Sheetname()
Application.Volatile
Sheetname = Application.Caller.Parent.Name
End Function
Function Test()
Application.Volatile
' Returns the cell one column to the left of the active cell. Note
' that the active cell is not necessarily the cell that is calling
' the function.
Test = ActiveCell.Offset(0, -1).Value
End Function
change it to the following:
Function Test()
Application.Volatile
' Returns the cell one column to the left of the cell that is
' actually calling the function.
Test = Application.Caller.Offset(0, -1).Value
End Function
感恩大大!! |
|