返回列表 上一主題 發帖

[發問] 如何作一個 global event handler(像cell change, shape move event)

[發問] 如何作一個 global event handler(像cell change, shape move event)

小弟利用 excel 作 floorplan,
用shape來代表物體及一些cel l儲存/顯示 shape.Top shape.Left
小弟想作的功能是移動 shape 會自動去更新 cell 的 Top 及 Left 的值,
反之改變 cell value(Top, Left) 會自動更新 shape 的位置。
就我知道的每個 sheet 裡的 code 會可以看到 cell change event ,
但我希望可以把這些 handler subroutine 寫在 module 裡,而不用每個sheet裡都要加。
再者,好像沒有看到 shape change event ?

謝謝

http://forum.twbts.com/viewthrea ... %26amp%3Btypeid%3D3
在論壇找到這一篇,感覺上應該可以用上,
不過目前較沒有時間,只能之後再來研究

TOP

        靜思自在 : 看別人不順眼,是自己修養不夠。
返回列表 上一主題