- 帖子
- 104
- 主題
- 32
- 精華
- 0
- 積分
- 144
- 點名
- 0
- 作業系統
- windowsXP
- 軟體版本
- 2007
- 閱讀權限
- 20
- 性別
- 男
- 註冊時間
- 2013-2-25
- 最後登錄
- 2022-9-2

|
本帖最後由 lifedidi 於 2013-3-20 12:03 編輯
請問大大:
sheet1已經保護工作表
而我要在sheet2進行copy
Private Sub CommandButton1_Click()
with sheet1
ActiveSheet.Unprotect "123"
with sheet2
.
copy....
End with
ActiveSheet.Protect "123", DrawingObjects:=True, Contents:=True, Scenarios:=True
End with
End sub
這樣子是對的嗎? |
|