Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel - VBA Application CommandBar ID's 1

Status
Not open for further replies.

DAmoss

Technical User
Joined
Jul 23, 2003
Messages
169
Location
GB
Hi,

Can anyone tell me the ID number for the following control in Excel:

Tools > Options > Edit > Allow Cell Drag and Drop

I'm currently using the following code to disable the 'Options' popup, but I really need to turn off drag and drop first that is located on the popup window. I don't want users to be able to copy cells down as it gets past my validation routines.

Application.CommandBars("Tools").FindControl(ID:=522).Enabled = False

Thanks in advance
Don
 
Try Application.CellDragAndDrop = False


Regards,
Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top