Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default how to make a cell mandatory in the excel sheet

I am in the process of creating a form in Excel spreadsheet, please let me
know how can I make a cell mandatory, also want to disable "Send To" command
from File menu.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 209
Default how to make a cell mandatory in the excel sheet

Disable/Enable 'Send To'...

'/===================================/
Public Sub DisableMenuItem_Example()
'Disable / enable a menu item
' - used when you don't want to let a user
' access a particular option
' - Note: a user with a little VBA knowledge
' can easily overcome this
'
Dim objMenuItem As Object, objSubMenuItem As Object
Dim strMainMenuItem As String
Dim strSubMenuItem As String

'- - - - - - VARIABLES - - - - - - - - -
strMainMenuItem = "&File" 'Main Menu Item
strSubMenuItem = "Sen&d To" 'SubMenu Item
'- - - - - - - - - - - - - - - - - - - -

For Each objMenuItem In CommandBars("Worksheet Menu Bar").Controls
If objMenuItem.Caption = strMainMenuItem Then
For Each objSubMenuItem In objMenuItem.Controls
If objSubMenuItem.Caption = strSubMenuItem Then
objSubMenuItem.Enabled = False 'disable a menu item
' objSubMenuItem.Enabled = True 'enable a menu item
Exit For
End If
Next objSubMenuItem
Exit For
End If
Next objMenuItem

End Sub
'/===================================/

--
Hope this helps.
Thanks in advance for your feedback.
Gary Brown


"Asif" wrote:

I am in the process of creating a form in Excel spreadsheet, please let me
know how can I make a cell mandatory, also want to disable "Send To" command
from File menu.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 209
Default how to make a cell mandatory in the excel sheet

Use a worksheet event such as 'Worksheet_Deactivate()' and check that a cell
has info before you can get out of the worksheet.
--
Hope this helps.
Thanks in advance for your feedback.
Gary Brown


"Asif" wrote:

I am in the process of creating a form in Excel spreadsheet, please let me
know how can I make a cell mandatory, also want to disable "Send To" command
from File menu.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make an input in a cell mandatory without leaving it blank Sandy Excel Discussion (Misc queries) 5 April 19th 23 02:11 PM
In Excel, how do I make a cell equals the sheet name? Dallas, TX Excel Worksheet Functions 3 November 6th 07 09:20 PM
How can I make a cell mandatory? [email protected] Excel Discussion (Misc queries) 3 February 6th 06 11:01 PM
How can I make a cell mandatory and only accept a Y or N? Vicki Excel Worksheet Functions 1 June 23rd 05 07:23 PM
Can I make cell completion mandatory in excel? Peter Green Excel Discussion (Misc queries) 3 December 23rd 04 03:29 PM


All times are GMT +1. The time now is 12:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"