Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 04-14-2013, 04:38 AM
niton niton is offline How to prohibit the using of SHIFT key using VBA Windows 7 64bit How to prohibit the using of SHIFT key using VBA Office 2010 64bit
Competent Performer
 
Join Date: Jul 2012
Posts: 102
niton is on a distinguished road
Default

Quote:
Originally Posted by beginner View Post
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()
You can try forcing users to enable macros.

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
Unhide on opening, if macros are enabled.

Code:
For Each Sheet In Sheets 
    If Not Sheet.Name = "Prompt" Then 
        Sheet.Visible = xlSheetVisible 
    End If 
Next 

Sheets("Prompt").Visible = xlSheetVeryHidden
http://www.vbaexpress.com/kb/getarticle.php?kb_id=578



*******************
Consider rating the thread by going to the "Rate Thread" dropdown.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to prohibit the using of SHIFT key using VBA Noob here - I need a shift calendar by days with count of shift. freeman Excel 8 09-12-2012 08:45 AM
How to prohibit the using of SHIFT key using VBA Shift cell right 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
How to prohibit the using of SHIFT key using VBA Shift key erratic Razz Outlook 2 05-04-2011 05:35 PM
Word 2003 Shift F3 FLMT Word 0 02-22-2009 08:11 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:59 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft