Solved

Remove help button from excel data validation

Posted on 2014-07-27
9
261 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 49

Accepted Solution

by:
Rgonzo1971 earned 100 total points
ID: 40223483
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
ID: 40223510
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 49

Expert Comment

by:Rgonzo1971
ID: 40223544
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
ID: 40225520
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:satmisha
ID: 40225635
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
ID: 40225643
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
ID: 40227946
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
ID: 40228415
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
ID: 40237333
Thanks a lot guys for your valuable replies.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Macro Capitalize 4 54
Delete texts with font color 16 30
Excel Save As Status Box will not go away 6 19
Help with Excel formula 6 38
Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

920 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

13 Experts available now in Live!

Get 1:1 Help Now