PC Review


Reply
Thread Tools Rate Thread

Disable "Move or Copy sheet "action

 
 
=?Utf-8?B?YXJtYVNBTkVB?=
Guest
Posts: n/a
 
      15th Aug 2007
Hello,

I need to find a way to disable certain Excel functions, like the Move or
Copy sheet action. I would like to ask for some good advice on how to do this.

Also, although I understand this is highly unlikely, but is there any way to
control the parameters shown in the Move or Copy form? (from Edit --> Move or
Copy sheet). Is there ay way to remove the item "(new book)" from the "To
Book" dropdownlist?

If not, perhaps I could disable the dropdownlist altogether? This way moving
or copying could be done only within the current workbook.


Thanks for reading!

 
Reply With Quote
 
 
 
 
=?Utf-8?B?TWljaGFlbA==?=
Guest
Posts: n/a
 
      15th Aug 2007
'This command will remove not really delete the Move or copy sheet from the
edit bar
ThisWorkbook.CommandBars("Edit").Controls(13).Delete
'This command will disable the right click version of moving or copying the
sheet
Set modfctrl = CommandBars(35).FindControl(ID:=848)
With modfctrl
If .ID = 848 Then
.Enabled = False
End If
End With
To Restore into main edit bar do this:
Application.CommandBars("Edit").Controls.Add Type:=msoControlButton, ID:= _
848, Before:=13

To restore on right click:
Enabled = True

If this posting is helpful please click on the yes button. Thank you

Michael Arch

"armaSANEA" wrote:

> Hello,
>
> I need to find a way to disable certain Excel functions, like the Move or
> Copy sheet action. I would like to ask for some good advice on how to do this.
>
> Also, although I understand this is highly unlikely, but is there any way to
> control the parameters shown in the Move or Copy form? (from Edit --> Move or
> Copy sheet). Is there ay way to remove the item "(new book)" from the "To
> Book" dropdownlist?
>
> If not, perhaps I could disable the dropdownlist altogether? This way moving
> or copying could be done only within the current workbook.
>
>
> Thanks for reading!
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i disable/enable "Worksheet Move or copy" option? Saon Microsoft Excel Worksheet Functions 1 15th May 2008 06:30 PM
Excel "Move or Copy" and "Delete" sheet functions dsiama Microsoft Excel Worksheet Functions 1 28th Dec 2007 01:57 PM
Disable "Move or Copy sheet "action =?Utf-8?B?YXJtYVNBTkVB?= Microsoft Excel Programming 0 14th Aug 2007 04:50 PM
Is it possible to disable "Calculating time to copy/move file..." Baron Windows Vista General Discussion 22 13th Jan 2007 01:35 AM
Error In Excel 2003 "A formula or sheet you want to move or copy" =?Utf-8?B?RXRlcm5pdHlocQ==?= Microsoft Excel Crashes 0 17th Nov 2005 03:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:47 AM.