![]() |
|
#1
|
|||
|
|||
![]() Does anyone have VBA code How to prohibit the use of SHIFT key using VBA when opening excel file VBA code I want put in Workbook_Open() Last edited by beginner; 04-12-2013 at 11:34 PM. Reason: Solved |
#2
|
||||
|
||||
![]()
You cannot do that. If it was possible, virus writers could destroy your files. People can prevent you macro from running in other ways too (eg via their macro security settings or by starting Excel in safe mode). You cannot stop the users doing any of these things.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
![]()
Thank you for answering
|
#4
|
|||
|
|||
![]() Quote:
Hide all sheets on closing. Except for a prompt sheet telling them to enable macros. Code:
For Each Sheet In Sheets If Not Sheet.Name = "Prompt" Then Sheet.Visible = xlSheetVeryHidden End If Next Code:
For Each Sheet In Sheets If Not Sheet.Name = "Prompt" Then Sheet.Visible = xlSheetVisible End If Next Sheets("Prompt").Visible = xlSheetVeryHidden ******************* Consider rating the thread by going to the "Rate Thread" dropdown. |
#5
|
||||
|
||||
![]()
I have already provided the OP with code to apply that kind of control (and more) in an earlier thread: https://www.msofficeforums.com/excel...t-working.html
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#6
|
|||
|
|||
![]()
@niton: Thanks for the advice
@macropod: Thank you for your response and the link, I saw it and now I study |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
freeman | Excel | 8 | 09-12-2012 08:45 AM |
![]() |
gsrikanth | Excel Programming | 2 | 01-17-2012 11:29 PM |
All text shift to the left??? | ewallet | Word | 1 | 06-21-2011 08:41 AM |
![]() |
Razz | Outlook | 2 | 05-04-2011 05:35 PM |
Word 2003 Shift F3 | FLMT | Word | 0 | 02-22-2009 08:11 AM |