Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Disable Drag & Drop

How can you programically disable the drag & drop EDIT from the application
so it is no longer an option under TOOLSOPTIONS while the workbook is open?

Excel 2003
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 156
Default Disable Drag & Drop


Application.CellDragAndDrop = False

Sandy


Stewart wrote:
How can you programically disable the drag & drop EDIT from the application
so it is no longer an option under TOOLSOPTIONS while the workbook is open?

Excel 2003


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Disable Drag & Drop

Thanks Sandy, but this is only a temporary fix as the user can reactivate it
through the menu.

I want to remove/disable the option while my workbook is open.


"Sandy" wrote:


Application.CellDragAndDrop = False

Sandy


Stewart wrote:
How can you programically disable the drag & drop EDIT from the application
so it is no longer an option under TOOLSOPTIONS while the workbook is open?

Excel 2003



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 156
Default Disable Drag & Drop

Put this code in the ThisWorkbook level of Visual Basic Editor. This
will disable the options drop down and then disable drag and drop when
the workbook is active. Then when the workbook in deactive (in the
backround) the both of the above will be enabled. This will let you
drag and drop/use option drop down on other workbooks that are open

Private Sub Workbook_Activate()
Application.CommandBars("Tools").Controls("Options ...").Enabled = False
Application.CellDragAndDrop = False
End Sub

Private Sub Workbook_Deactivate()
Application.CommandBars("Tools").Controls("Options ...").Enabled = True
Application.CellDragAndDrop = True
End Sub


Sandy

Stewart wrote:
Thanks Sandy, but this is only a temporary fix as the user can reactivate it
through the menu.

I want to remove/disable the option while my workbook is open.


"Sandy" wrote:


Application.CellDragAndDrop = False

Sandy


Stewart wrote:
How can you programically disable the drag & drop EDIT from the application
so it is no longer an option under TOOLSOPTIONS while the workbook is open?

Excel 2003




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Enable/Disable Drag and Drop in Excel 2003 via Registry BSchmeltz Excel Discussion (Misc queries) 9 July 12th 07 05:03 PM
Disable drag and drop and cut and paste SteelDetailer[_2_] Excel Programming 0 June 8th 06 07:59 PM
How to Disable drag and drop of Pictures from Excel dshaffer Excel Programming 1 January 19th 06 12:50 AM
Disable Cut, Paste, Drag & Drop in Protected Workbook Andrew Stevens Excel Programming 4 December 6th 05 03:42 PM
Disable drag and drop for a selected range under a certain conditi Valeria Excel Programming 0 December 27th 04 09:19 AM


All times are GMT +1. The time now is 08:37 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"