Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
A related example of Workbook_Open code is disabling all practical cut/
copy/paste functionality. It works for any office version prior to 2007 (where you have to disable the ribbon commands as well). Here's the code: Private Sub Workbook_Open() With Application .OnKey "^V", "" .OnKey "^v", "" .OnKey "^c", "" .OnKey "^C", "" .OnKey "^x", "" .OnKey "^X", "" .OnKey "^{DEL}", "" .OnKey "^{DELETE}", "" .OnKey "^{INSERT}", "" .OnKey "+{DEL}", "" .OnKey "+{DELETE}", "" .OnKey "+{INSERT}", "" With .CommandBars("Cell") .Controls("Copy").Enabled = False .Controls("Cut").Enabled = False .Controls("Paste").Enabled = False .Controls("Paste Special...").Enabled = False End With With .CommandBars("Column") .Controls("Copy").Enabled = False .Controls("Cut").Enabled = False .Controls("Paste").Enabled = False .Controls("Paste Special...").Enabled = False End With With .CommandBars("Row") .Controls("Copy").Enabled = False .Controls("Cut").Enabled = False .Controls("Paste").Enabled = False .Controls("Paste Special...").Enabled = False End With With .CommandBars("Edit") .Controls("Copy").Enabled = False .Controls("Cut").Enabled = False .Controls("Paste").Enabled = False .Controls("Paste Special...").Enabled = False End With With .CommandBars("Standard") .Controls("Copy").Enabled = False .Controls("Cut").Enabled = False .Controls("Paste").Enabled = False End With End With End Sub Private Sub Workbook_BeforeClose(Cancel As Boolean) With Application .OnKey "^V" .OnKey "^v" .OnKey "^c" .OnKey "^C" .OnKey "^x" .OnKey "^X" .OnKey "^{DEL}" .OnKey "^{DELETE}" .OnKey "^{INSERT}" .OnKey "+{DEL}" .OnKey "+{DELETE}" .OnKey "+{INSERT}" .CommandBars("Cell").Enabled = True .CommandBars("Row").Enabled = True .CommandBars("Column").Enabled = True With .CommandBars("Edit") .Controls("Copy").Enabled = True .Controls("Cut").Enabled = True .Controls("Paste").Enabled = True .Controls("Paste Special...").Enabled = True End With With .CommandBars("Standard") .Controls("Copy").Enabled = True .Controls("Cut").Enabled = True .Controls("Paste").Enabled = True End With With .CommandBars("Cell") .Controls("Copy").Enabled = True .Controls("Cut").Enabled = True .Controls("Paste").Enabled = True .Controls("Paste Special...").Enabled = True End With With .CommandBars("Column") .Controls("Copy").Enabled = True .Controls("Cut").Enabled = True .Controls("Paste").Enabled = True .Controls("Paste Special...").Enabled = True End With With .CommandBars("Row") .Controls("Copy").Enabled = True .Controls("Cut").Enabled = True .Controls("Paste").Enabled = True .Controls("Paste Special...").Enabled = True End With End With End Sub On Dec 9, 12:44 pm, (Jeff Korn) wrote: Assume I created an excel sheet which I want to offer some users. Is there an Excel only Viewer which does not load and show the full Excel software but only a viewer. This veiwer should allow the user to enter values in prepared cells and select drop down values but does not offer all the huge functionality. Particularly it should hide all the menues and toolbars of Excel. Is there such a viewer only ? Jeff |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Is there an Excel Viewer ONLY = Excel WITHOUT menues+toolbars around ? | Excel Discussion (Misc queries) | |||
Opening Excel 2007 file with Excel Viewer 2003 | Excel Discussion (Misc queries) | |||
can't edit excel worksheet with excel viewer 2003 | Excel Discussion (Misc queries) | |||
how do I add Drop down menues in Excel? | Excel Worksheet Functions | |||
How Do I open an excel file without Excel Viewer support | Excel Discussion (Misc queries) |