Home |
Search |
Today's Posts |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Ron!
You have solved my problem!! Thanks for your help with this!! This is how the code turned out: With ActiveWindow Application.CommandBars(1).Enabled = False 'True to restore .DisplayHeadings = False .DisplayWorkbookTabs = False End With Application.CommandBars("Standard").Visible = False Application.CommandBars("Formatting").Visible = False Application.CommandBars("Drawing").Visible = False Application.CommandBars("Visual Basic").Visible = False For Each Ctl In CommandBars("Cell").Controls Ctl.Enabled = False Next Ctl Application.CommandBars("cell").Controls. _ Add Type:=msoControlButton, ID:=370, befo=1 Set oCtls = CommandBars.FindControls(ID:=19) ''Copy If Not oCtls Is Nothing Then For Each oCtl In oCtls oCtl.Enabled = True Next End If With Application .OnKey "^v", "" .OnKey "^x", "" .OnKey "+{Del}", "" .CellDragAndDrop = False End With End Function Function Auto_Close() With ActiveWindow Application.CommandBars(1).Enabled = True 'True to restore .DisplayHeadings = False End With Application.CommandBars("Standard").Visible = True Application.CommandBars("Formatting").Visible = True Application.CommandBars("Drawing").Visible = True Application.CommandBars("cell").Reset With Application .OnKey "^v" .OnKey "^x" .OnKey "+{Del}" .CellDragAndDrop = True End With Application.Quit End Function //Thoma -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do i disable/enable "Worksheet Move or copy" option? | Excel Worksheet Functions | |||
Disable collate "on" option? | Excel Discussion (Misc queries) | |||
Disable "save" option on close. | Excel Discussion (Misc queries) | |||
How to set a default paste option of "Match Destination Format" | Excel Discussion (Misc queries) | |||
Modify code to disable "paste" | Excel Programming |