Solved

Remove help button from excel data validation

Posted on 2014-07-27
9
257 Views
Last Modified: 2014-08-03
Hi Experts,

I have been using cell data validation in Excel VBA project. Everything works fine except I do not want the help button.

Is there any better way to get rid of this inbuilt button ? Looking forward to hearing from you.
0
Comment
Question by:satmisha
  • 4
  • 3
  • 2
9 Comments
 
LVL 48

Accepted Solution

by:
Rgonzo1971 earned 100 total points
Comment Utility
HI,

You cannot delete the in-built Help but you can create a workaround

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("A1")) Is Nothing Then
    If Range("A1").Value <> 1 Then
        response = MsgBox("Value must be 1", vbRetryCancel + vbCritical, "Error")
    End If
End If
If response = 1 Then
'do something
Else
'Do something else
End If
End Sub


Regards
0
 

Author Comment

by:satmisha
Comment Utility
Yes you are right that we can not delete but cant we override this the way we do in other technologies ? Actually I have apply this to cell level and confused even how to use the way you are suggesting above.

Looking forward to hearing from you.
0
 
LVL 48

Expert Comment

by:Rgonzo1971
Comment Utility
Hi

If Not Intersect(Target, Range("A1")) Is Nothing Then
tests which cells are tested

If Range("A1").Value <> 1 Then
tests cell A1

Regards
0
 
LVL 27

Expert Comment

by:Glenn Ray
Comment Utility
What help button are you talking about?  I'm not aware of any.

Do you mean the In-cell dropdown arrow (like you see with data filters)?  You CAN turn that off:
in-cell dropdown option
-Glenn
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 

Author Comment

by:satmisha
Comment Utility
Thanks Glenn for your reply. Here I am enclosing the link where you could see the help button.

http://stackoverflow.com/questions/12956415/remove-help-button-from-excel-data-validation
0
 
LVL 27

Assisted Solution

by:Glenn Ray
Glenn Ray earned 100 total points
Comment Utility
Nope; can't delete it.  And interestingly, the solution provided here is nearly identical to the one shown in that link from 2012.
0
 

Author Comment

by:satmisha
Comment Utility
Generally you can extent some functionality and override as per your own requirement in oops like using concept inheritance etc.

I am really disappointed with VBA that we are provided no other choice but to use existing once only :-(
0
 
LVL 27

Expert Comment

by:Glenn Ray
Comment Utility
Sorry that it doesn't do everything, but as you see, there IS a VBA workaround if you're so inclined to use it.  Frankly, the Help button doesn't bother me in the least.
0
 

Author Closing Comment

by:satmisha
Comment Utility
Thanks a lot guys for your valuable replies.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

A2 = A1 That kind of cell reference is relative.  If you copy it from A2 to B2, then B2 will get this: B2 = B1 That's all fine and good, but if you then insert a new row above row 2, you'll find: A3 = A1 B3 = B1 This is intentional. …
Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now